isLandscape method

bool isLandscape(
  1. Orientation orientation
)

Indicates whether the current device info should be in landscape.

This is true only if the device can rotate.

Implementation

bool isLandscape(Orientation orientation) {
  return canRotate && orientation == Orientation.landscape;
}