animateCamera method

Future<void> 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.

Implementation

Future<void> animateCamera(CameraUpdate cameraUpdate) async {
  await channel.invokeMethod<void>('camera#animate', <String, dynamic>{
    'cameraUpdate': cameraUpdate._toJson(),
  });
}