lockScreenRotations static method

dynamic lockScreenRotations()

Implementation

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