isPortrait property

bool get isPortrait

True when the screen is taller than it is wide.

Implementation

bool get isPortrait => MediaQuery.orientationOf(this) == Orientation.portrait;