getGeofence static method

Future<Geofence?> getGeofence(
  1. String identifier
)

Gets a geofence by identifier.

Implementation

static Future<Geofence?> getGeofence(String identifier) async {
  final result =
      await LocusChannels.methods.invokeMethod('getGeofence', identifier);
  if (result is Map) {
    return Geofence.fromMap(Map<String, dynamic>.from(result));
  }
  return null;
}