setZoomGesturesEnabled method

Future<void> setZoomGesturesEnabled(
  1. bool enable
)

Sets street view to allow using zoom gestures or not. Web not support and isZoomGesturesEnabled always be true

Return Future while the change has been made on the platform side.

Implementation

Future<void> setZoomGesturesEnabled(bool enable) {
  if (kIsWeb)
    throw UnsupportedError(
        "[setPanningGesturesEnabled] is not yet supported for Web.");
  if (enable == _isZoomGesturesEnabled) return Future.delayed(Duration.zero);
  return _streetViewFlutterPlatform
      .setZoomGesturesEnabled(viewId, enable)
      .then((value) => _isZoomGesturesEnabled = enable);
}