animateTo method

Future<void> animateTo({
  1. required StreetViewPanoramaCamera camera,
  2. required int duration,
})

Animate camera to a given position over a specified duration.

duration unit is ms.

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

Implementation

Future<void> animateTo(
    {required StreetViewPanoramaCamera camera, required int duration}) {
  assert(duration > 0);
  return _streetViewFlutterPlatform.animateTo(viewId,
      camera: camera, duration: duration);
}