isPortrait property
bool
get
isPortrait
Checks if the device is in portrait mode based on the orientation.
Implementation
bool get isPortrait => orientation == Orientation.portrait;
Checks if the device is in portrait mode based on the orientation.
bool get isPortrait => orientation == Orientation.portrait;