setPosition method

Future<void> setPosition({
  1. LatLng? position,
  2. String? panoId,
  3. int? radius,
  4. StreetViewSource? source,
})

Sets panorama by given location

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

Implementation

Future<void> setPosition(
    {LatLng? position,
    String? panoId,
    int? radius,
    StreetViewSource? source}) {
  assert(position != null || panoId != null);
  assert(position == null || panoId == null);
  return _streetViewFlutterPlatform.setPosition(viewId,
      position: position, panoId: panoId, radius: radius, source: source);
}