isRotated static method

bool isRotated(
  1. DeviceInfo? info,
  2. Orientation orientation
)

Implementation

static bool isRotated(DeviceInfo? info, Orientation orientation) {
  return info != null &&
      info.canRotate &&
      orientation == Orientation.landscape;
}