setStreetNamesEnabled method

Future<void> setStreetNamesEnabled(
  1. bool enable
)

Sets street view to display street name or not.

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

Implementation

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