LocationWakeup constructor
LocationWakeup()
Constructs a LocationWakeup plugin
Implementation
LocationWakeup() {
_subscription = LocationWakeupPlatform.instance.locationUpdates.listen(
(event) {
_streamController.add(toLocationResult(event));
},
// ignore: avoid_annotating_with_dynamic
onError: (dynamic error) => streamError(_streamController, error),
);
}