isPortrait property

bool get isPortrait

Check if device is in portrait mode

Implementation

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