setDisableDoubleClickZoom method

Future<void> setDisableDoubleClickZoom(
  1. bool enable
)

Sets street view to allow using zoom on double click or not. Web only

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

Implementation

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