setAllGesturesEnabled method

Future<void> setAllGesturesEnabled(
  1. bool enable
)

所有手势使能

Implementation

Future<void> setAllGesturesEnabled(bool enable) async {
  await platform(
    android: (pool) async {
      final map = await androidController.getMap();
      final uiSetting = await map.getUiSettings();
      await uiSetting.setAllGesturesEnabled(enable);

      pool..add(map)..add(uiSetting);
    },
    ios: (pool) async {
      await iosController.set_zoomEnabled(enable);
      await iosController.set_scrollEnabled(enable);
      await iosController.set_rotateEnabled(enable);
      await iosController.set_rotateCameraEnabled(enable);
    },
  );
}