getGeofence static method
- String identifier
Gets a geofence by identifier.
Implementation
static Future<Geofence?> getGeofence(String identifier) async {
final result = await _methodChannel.invokeMethod('getGeofence', identifier);
if (result is Map) {
return Geofence.fromMap(Map<String, dynamic>.from(result));
}
return null;
}