setFullscreenControl method

Future<void> setFullscreenControl(
  1. bool enable
)

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

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

Implementation

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