animateCamera method

  1. @override
Future<void> animateCamera(
  1. CameraUpdate cameraUpdate, {
  2. required int mapId,
})
override

Starts an animated change of the map camera position.

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

Implementation

@override
Future<void> animateCamera(
  CameraUpdate cameraUpdate, {
  required int mapId,
}) {
  return channel(mapId).invokeMethod<void>('camera#animate', <String, Object>{
    'cameraUpdate': cameraUpdate.toJson(),
  });
}