setPosition method
Future<void>
setPosition(
- int viewId, {
- LatLng? position,
- String? panoId,
- int? radius,
- StreetViewSource? source,
override
Sets panorama by given location
Return Future while the change has been made on the platform side.
Implementation
@override
Future<void> setPosition(int viewId,
{LatLng? position,
String? panoId,
int? radius,
StreetViewSource? source}) {
return channel(viewId)!.invokeMethod(
"streetView#movePos",
StreetViewCameraPosition(
position: position,
panoId: panoId,
radius: radius,
source: source)
.toMap());
}