isLandscape property

bool get isLandscape

Check if the device orientation is landscape

Example: context.isLandscape

Implementation

bool get isLandscape => orientation == Orientation.landscape;