setViewpointCameraAnimated method

Future<bool> setViewpointCameraAnimated({
  1. required Camera camera,
  2. double duration = 0.25,
})

Animates the display to the viewpoint specified by the given camera using the specified duration to arrive.

Parameters:

  • camera — The new camera information for the scene view.
  • duration — The time for the transition animation to complete, in seconds.

Return Value: A Future.