isPortrait property
bool
get
isPortrait
Check if the device orientation is portrait
Example: context.isPortrait
Implementation
bool get isPortrait => orientation == Orientation.portrait;
Check if the device orientation is portrait
Example: context.isPortrait
bool get isPortrait => orientation == Orientation.portrait;