geo-smart-app/lib/model/setting.dart
2020-07-29 01:11:47 +07:00

19 lines
315 B
Dart

class SettingModel {
String host = "";
String id = "";
SettingModel(this.host, this.id);
bool isNullHost() {
return (this.host == "" || this.host == null);
}
bool isNullId() {
return (this.id == "" || this.id == null);
}
bool isValid() {
return (!isNullHost() && !isNullId());
}
}