deviceOrientation top-level property
Current absolute device orientation.
The last known device orientation. On devices that does not support sensors it will default to DeviceOrientation.portraitUp.
Implementation
DeviceOrientation deviceOrientation = _lastKnownOrientation;