addLocationStatusListener method

void addLocationStatusListener(
  1. LocationStatusListener listener
)
inherited

Adds a LocationStatusListener to the engine to get notified when there is a an important status change. Supports more than one listener, instance is added only once.

Implementation

void addLocationStatusListener(LocationStatusListener listener) {
  if (!_locationStatusListeners.containsKey(listener)) {
    _locationStatusListeners[listener] = LocationStatusListenerBridge(
      listener,
    );
  }
  _location.addLocationStatusListener(_locationStatusListeners[listener]!);
}