moveCamera method

Future<bool> moveCamera({
  1. required double distanceDelta,
  2. required double headingDelta,
  3. required double pitchDelta,
  4. required double duration,
})

Animates the camera to a new offset position relative to the target with the specified duration.

The heading and pitch delta values may be greater than 360 degrees and the angle is not normalized. For example, a heading delta of 720 will make the camera do two circles around the target within the duration time.

Parameters:

  • distanceDelta — The change in distance to apply in the animation.
  • headingDelta — The change in heading to apply in the animation.
  • pitchDelta — The change in pitch to apply in the animation.
  • duration — The duration of the animation in seconds.

Return Value: A Future returning a bool used to check the animation complete successfully or not.