orientation property

Orientation get orientation

Gets the orientation (portrait or landscape).

Example:

final orientation = context.orientation;

Implementation

Orientation get orientation => MediaQuery.of(this).orientation;