setOnlyLandscape function

Future<void> setOnlyLandscape()

Implementation

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