isPortrait property
bool
isPortrait
Whether device is taller than wide or not.
Implementation
bool get isPortrait =>
MediaQuery.of(this).orientation == Orientation.portrait;
Whether device is taller than wide or not.
bool get isPortrait =>
MediaQuery.of(this).orientation == Orientation.portrait;