deviceOrientationChanged method

  1. @override
void deviceOrientationChanged(
  1. PlatformDeviceOrientation orientation
)

Called when the device's physical orientation changes.

Implementation

@override
void deviceOrientationChanged(PlatformDeviceOrientation orientation) {
  deviceEventStreamController.add(DeviceOrientationChangedEvent(
      deviceOrientationFromPlatform(orientation)));
}