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 position relative to the target.

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.