onExitGeofences method

Future<void> onExitGeofences(
  1. OnExitedGeofencesCallback callback
)

Get notified when the user exits a Geofence. Call this method before the positioning is started.

Implementation

Future<void> onExitGeofences(OnExitedGeofencesCallback callback) async {
  _onExitedGeofencesCallback = callback;
  // Install the native listener only when it was explicitly required as it
  // supposes a computational costs.
  await methodChannel.invokeMethod('geofenceCallbacksRequested');
}