isPortrait property

bool get isPortrait

Returns true if screen orientation is portrait.

Implementation

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