animateTo method

  1. @override
Future<void> animateTo(
  1. int viewId, {
  2. StreetViewPanoramaCamera? camera,
  3. int? duration,
})
override

Animate camera to a given positionStreetViewPanoramaCamera over a specified duration.

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

Implementation

@override
Future<void> animateTo(int viewId,
    {StreetViewPanoramaCamera? camera, int? duration}) {
  return channel(viewId)!.invokeMethod("streetView#animateTo",
      camera!.toMap()..putIfAbsent("duration", () => duration!.toDouble()));
}