setViewpointCameraAnimated method

  1. @awaitNotRequired
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 boolean value. True if the viewpoint was successfully set. Otherwise, false.