setUserNavigationEnabled method

Future<void> setUserNavigationEnabled(
  1. bool enable
)

Sets street view to allow moving to another panorama.

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

Implementation

Future<void> setUserNavigationEnabled(bool enable) {
  if (enable == _isUserNavigationEnabled)
    return Future.delayed(Duration.zero);
  return _streetViewFlutterPlatform
      .setUserNavigationEnabled(viewId, enable: enable)
      .then((value) => _isUserNavigationEnabled = enable);
}