isPortrait property

bool get isPortrait

Checks if the device is in portrait mode based on the orientation.

Implementation

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