setTiltGesturesEnabled method

Future setTiltGesturesEnabled(
  1. bool enable
)

旋转手势使能

Implementation

Future setTiltGesturesEnabled(bool enable) {
  return platform(
    android: (pool) async {
      final map = await _androidController.getMap();
      final uiSetting = await map.getUiSettings();
      await uiSetting.setTiltGesturesEnabled(enable);

      pool..add(map)..add(uiSetting);
    },
    ios: (pool) async {
      await _iosController.set_rotateCameraEnabled(enable);
    },
  );
}