isPortrait property
bool
get
isPortrait
Check if the device is in portrait mode
Implementation
bool get isPortrait => !isLandscape;
Check if the device is in portrait mode
bool get isPortrait => !isLandscape;