newCameraPosition static method

CameraUpdate newCameraPosition(
  1. CameraPosition cameraPosition
)

Returns a camera update that moves the camera to the specified position.

Implementation

static CameraUpdate newCameraPosition(CameraPosition cameraPosition) {
  return CameraUpdate._(
    <Object>['newCameraPosition', cameraPosition.toMap()],
  );
}