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