18 lines
350 B
Dart
18 lines
350 B
Dart
enum GeofenceSystemIssue {
|
|
noActiveHome,
|
|
missingCoordinates,
|
|
locationServicesDisabled,
|
|
permissionDenied,
|
|
permissionDeniedForever,
|
|
backgroundPermissionRequired,
|
|
ready,
|
|
}
|
|
|
|
class GeofenceSystemState {
|
|
final GeofenceSystemIssue issue;
|
|
|
|
const GeofenceSystemState(this.issue);
|
|
|
|
bool get isReady => issue == GeofenceSystemIssue.ready;
|
|
}
|