isPortrait property

bool get isPortrait

Check if the device orientation is portrait

Example: context.isPortrait

Implementation

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