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