removeOrientationListener method

void removeOrientationListener(
  1. OrientationListener listener
)
override

Removes an OrientationListener from the engine.

  • listener The listener to be removed.

Implementation

void removeOrientationListener(OrientationListener listener) {
  OrientationListenerBridge? bridge = _orientationListeners.remove(listener);
  if (bridge == null) {
    return;
  }
  _location.removeOrientationListener(bridge);
}