moveCamera method

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

Changes the map camera position.

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

Implementation

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