isPortrait property

bool get isPortrait

True when taller than wide.

Implementation

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