isPortrait property
bool
get
isPortrait
Returns true if the screen is in portrait orientation (height >= width).
Implementation
bool get isPortrait => !isLandscape;
Returns true if the screen is in portrait orientation (height >= width).
bool get isPortrait => !isLandscape;