setOrientationLandscape function

void setOrientationLandscape()

Set orientation to landscape

Implementation

void setOrientationLandscape() {
  SystemChrome.setPreferredOrientations([
    DeviceOrientation.landscapeRight,
    DeviceOrientation.landscapeLeft,
  ]);
}