setScrollwheel method

Future<void> setScrollwheel(
  1. bool enable
)

Sets street view to allow using scrollwheel zooming or not. Web only

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

Implementation

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