disableOrientationLandcape static method

dynamic disableOrientationLandcape()

Disable Orientation Landcape screen

Implementation

static disableOrientationLandcape() {
  SystemChrome.setPreferredOrientations([
    DeviceOrientation.portraitUp,
    DeviceOrientation.portraitDown,
  ]);
}