lockAutoRotate static method

dynamic lockAutoRotate()

Implementation

static lockAutoRotate() {
  SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
}