setPanControl method
Sets street view to allow using pan control or not. Web only
Return Future while the change has been made on the platform side.
Implementation
Future<void> setPanControl(bool enable) {
if (!kIsWeb)
throw UnsupportedError("[setPanControl] is not yet supported for Web.");
if (enable == _isPanControl) return Future.delayed(Duration.zero);
return _streetViewFlutterPlatform
.setPanControl(viewId, enable)
.then((value) => _isPanControl = enable);
}