INNER CODE UNIT · Dart
callback
transistorsoft/flutter_background_geolocation · lib/models/background_geolocation.dart:1239
static bool removeListener(Function callback) {
_Subscription? found = _subscriptions
.firstWhereOrNull((_Subscription item) => item.callback == callback);
if (found != null) {
found.subscription.cancel();
_subscriptions.remove(found);
return true;
} else {
return false;
}
}
/// Subscribe to motionchange events
///
/// Your `callback` will be executed each time the device has changed-state between **MOVING** or **STATIONARY**.
///
/// ## Example
///