animateCamera method

Future<void> animateCamera(
  1. dynamic cameraUpdate
)

Starts an animated change of the map camera position.

The returned Future completes after the change has been started on the platform side.

Implementation

Future<void> animateCamera(cameraUpdate) async {
  if (Platform.isIOS) {
    return this.appleController!.animateCamera(cameraUpdate);
  } else if (Platform.isAndroid) {
    return this.googleController!.animateCamera(cameraUpdate);
  }
  throw ('Platform not supported.');
}