getActiveGeofences method
Returns all currently active geofence regions.
Implementation
@override
Future<List<GeofenceRegion>> getActiveGeofences() async {
final result =
await methodChannel.invokeMethod<List>('getActiveGeofences');
if (result == null) return [];
return result
.map((item) =>
GeofenceRegion.fromMap(Map<String, dynamic>.from(item as Map)))
.toList();
}