getLocationStream method
Returns a stream of location updates.
Implementation
@override
Stream<LocationData> getLocationStream() {
_locationStream ??= locationEventChannel
.receiveBroadcastStream()
.map((event) =>
LocationData.fromMap(Map<String, dynamic>.from(event as Map)))
.handleError((error) {
debugPrint('LiveLocationTracker: Location stream error: $error');
});
return _locationStream!;
}