deviceOrientation property

Orientation deviceOrientation

Returns orientation for the nearest MediaQuery ancestor or throws an exception, if no such ancestor exists.

Implementation

Orientation get deviceOrientation => MediaQuery.orientationOf(this);