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

21 lines
398 B
Dart
Raw 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);
}
bool isNullHostId(String operator) {
return (operator == "and")
? isNullHost() && isNullId()
: isNullHost() || isNullId();
}
2019-12-16 00:18:09 +00:00
}