setOrientationAuto method Null safety

Future<void> setOrientationAuto()

Implementation

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