setOrientationAuto static method

Future<void> setOrientationAuto()

Implementation

static Future<void> setOrientationAuto() {
  if (Platform.isAndroid) {
    SystemChrome.setPreferredOrientations(DeviceOrientation.values);
  }
  return _channel.invokeMethod("setOrientationAuto");
}