moveCamera method

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

Instantaneously re-position the camera. Note: moveCamera() quickly moves the camera, which can be visually jarring for a user. Strongly consider using the animateCamera() methods instead because it's less abrupt.

The returned Future completes after the change has been made 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?> moveCamera(CameraUpdate cameraUpdate) async {
  return _mapboxGlPlatform.moveCamera(cameraUpdate);
}