mirror of
https://github.com/supanadit/geo-smart-app.git
synced 2024-11-14 04:02:23 +00:00
19 lines
315 B
Dart
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());
|
|
}
|
|
}
|