isPortrait property

bool get isPortrait

Returns true if the screen is in portrait orientation (height >= width).

Implementation

bool get isPortrait => !isLandscape;