addOrientationListener method

void addOrientationListener(
  1. OrientationListener listener
)
inherited

Implementation

void addOrientationListener(OrientationListener listener) {
  if (!_orientationListeners.containsKey(listener)) {
    _orientationListeners[listener] = OrientationListenerBridge(listener);
  }
  _location.addOrientationListener(_orientationListeners[listener]!);
}