setLandscape function

Future<void> setLandscape()

Implementation

Future<void> setLandscape() {
  return SystemChrome.setPreferredOrientations((<DeviceOrientation>[
    DeviceOrientation.landscapeLeft,
    DeviceOrientation.landscapeRight,
  ]));
}