mirror of
https://github.com/supanadit/geo-smart-app.git
synced 2024-11-10 01:52:22 +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());
|
|
}
|
|
}
|