INNER CODE UNIT · Dart
_Subscription
transistorsoft/flutter_background_geolocation · lib/models/background_geolocation.dart:30
class _Subscription {
final StreamSubscription<dynamic> subscription;
final Function callback;
_Subscription(this.subscription, this.callback);
}
/// Primary plugin API.
///
/// ## Events
///
/// [BackgroundGeolocation] is event-based and highly configurable through the [Config] API.
///
/// | Method | Description |
/// |------------------------|-----------------------------------------|
/// | [onLocation] | Fired with each recorded [Location] |
/// | [onMotionChange] | Fired when the plugin changes state between *moving* / *stationary* |
/// | [onHttp] | Fired with each HTTP response from your server. (see [HttpConfig.url]). |