animateCamera method

Future<bool?> animateCamera(
  1. CameraUpdate cameraUpdate
)

Starts an animated change of the map camera position.

The returned Future completes after the change has been started on the platform side. It returns true if the camera was successfully moved and false if the movement was canceled. Note: this currently always returns immediately with a value of null on iOS

Implementation

Future<bool?> animateCamera(CameraUpdate cameraUpdate) async {
  return _mapboxGlPlatform.animateCamera(cameraUpdate);
}