setLinksControl method

Future<void> setLinksControl(
  1. bool enable
)

Sets street view to allow using link control or not. Web only

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

Implementation

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