setViewpointWithDurationAndCurve method

Future<bool> setViewpointWithDurationAndCurve({
  1. required Viewpoint viewpoint,
  2. required double durationSeconds,
  3. required AnimationCurve curve,
})

Animates the display to the new viewpoint using the provided animation curve. The AnimationCurve defines the animation easing function.

Parameters:

  • viewpoint — The visible area to display in the view.
  • durationSeconds — The time for the transition animation to complete, in seconds.
  • curve — The type of animation curve.

Return Value: A Future.