addGeofence method

  1. @override
Future<bool> addGeofence(
  1. Geofence geofence
)
override

Implementation

@override
Future<bool> addGeofence(Geofence geofence) async {
  _methodCalls.add('addGeofence:${geofence.identifier}');
  _geofences.removeWhere((g) => g.identifier == geofence.identifier);
  _geofences.add(geofence);
  return true;
}