geo-smart-app/lib/model/setting.dart

19 lines
315 B
Dart
Raw Permalink Normal View History

2019-12-16 00:18:09 +00:00
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);
}
2020-07-28 18:11:47 +00:00
bool isValid() {
return (!isNullHost() && !isNullId());
}
2019-12-16 00:18:09 +00:00
}