deviceOrientation top-level property

DeviceOrientation deviceOrientation
getter/setter pair

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;