Extract settings and harden geofence automation
This commit is contained in:
17
lib/features/settings/models/geofence_system_state.dart
Normal file
17
lib/features/settings/models/geofence_system_state.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
enum GeofenceSystemIssue {
|
||||
noActiveHome,
|
||||
missingCoordinates,
|
||||
locationServicesDisabled,
|
||||
permissionDenied,
|
||||
permissionDeniedForever,
|
||||
backgroundPermissionRequired,
|
||||
ready,
|
||||
}
|
||||
|
||||
class GeofenceSystemState {
|
||||
final GeofenceSystemIssue issue;
|
||||
|
||||
const GeofenceSystemState(this.issue);
|
||||
|
||||
bool get isReady => issue == GeofenceSystemIssue.ready;
|
||||
}
|
||||
Reference in New Issue
Block a user