mirror of
https://github.com/supanadit/geo-smart-app.git
synced 2024-11-22 10:06:25 +00:00
3ead80b465
Update some Dependencies Logo Added Start and Stop Tracking Button Optimize Code Stable Version
21 lines
398 B
Dart
21 lines
398 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 isNullHostId(String operator) {
|
|
return (operator == "and")
|
|
? isNullHost() && isNullId()
|
|
: isNullHost() || isNullId();
|
|
}
|
|
}
|