setPanningGesturesEnabled method
Sets street view to allow using panning gesture or not.
Return Future while the change has been made on the platform side.
Implementation
Future<void> setPanningGesturesEnabled(bool enable) {
if (enable == _isPanningGesturesEnabled)
return Future.delayed(Duration.zero);
return _streetViewFlutterPlatform
.setPanningGesturesEnabled(viewId, enable: enable)
.then((value) => _isPanningGesturesEnabled = enable);
}