setOrientationToPortrait static method

Future<void> setOrientationToPortrait()

Implementation

static Future<void> setOrientationToPortrait() async {
  await SystemChrome.setPreferredOrientations(<DeviceOrientation>[
    DeviceOrientation.portraitUp,
    DeviceOrientation.portraitDown,
  ]);
}