orientation property

Orientation orientation

The orientation of the media (e.g., whether the device is in landscape or portrait mode).

Implementation

Orientation get orientation {
  return size.width > size.height ? Orientation.landscape : Orientation.portrait;
}