deviceOrientationChanged method
Called when the device's physical orientation changes.
Implementation
@override
void deviceOrientationChanged(PlatformDeviceOrientation orientation) {
deviceEventStreamController.add(
DeviceOrientationChangedEvent(deviceOrientationFromPlatform(orientation)),
);
}