isPortrait property
bool
get
isPortrait
Returns true if the device is in portrait mode.
Implementation
bool get isPortrait => orientation == Orientation.portrait;
Returns true if the device is in portrait mode.
bool get isPortrait => orientation == Orientation.portrait;