orientation property
Orientation
get
orientation
Gets the current screen orientation.
This property retrieves the current device orientation,
either portrait
or landscape
.
Implementation
Orientation get orientation =>
MediaQuery.maybeOf(this)?.orientation ?? Orientation.portrait;