isPortrait property
bool
get
isPortrait
True when the screen is taller than it is wide.
Implementation
bool get isPortrait => MediaQuery.orientationOf(this) == Orientation.portrait;
True when the screen is taller than it is wide.
bool get isPortrait => MediaQuery.orientationOf(this) == Orientation.portrait;