onLocationUpdate property

Stream<LocationUpdateEvent> get onLocationUpdate

Real-time GPS points forwarded from the native SDK pipeline.

Implementation

Stream<LocationUpdateEvent> get onLocationUpdate {
  _locationStream ??= _locationCh
      .receiveBroadcastStream()
      .map((e) => LocationUpdateEvent.fromMap(Map<Object?, Object?>.from(e as Map)))
      .asBroadcastStream();
  return _locationStream!;
}