orientation property

Orientation get orientation

Current device orientation.

Implementation

Orientation get orientation => _orientation;
set orientation (Orientation value)

Programmatically set device orientation. Can be changed implicitly while enabled autoOrientation.

Implementation

set orientation(Orientation value) {
  if (_orientation != value) {
    _orientation = value;
    _updateSizeAndPadding();
    renderView.orientation = value;
  }
}