isPortrait property

bool get isPortrait

Returns true if the current screen orientation is portrait.

Implementation

bool get isPortrait => orientation == Orientation.portrait;