geo-smart-app/lib/model/setting.dart
Supan Adit Pratama 3ead80b465 Migrate to Android X
Update some Dependencies
Logo Added
Start and Stop Tracking Button
Optimize Code
Stable Version
2020-01-03 22:13:00 +07:00

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();
}
}