newCameraPosition 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._(
    <dynamic>['newCameraPosition', cameraPosition.toMap()],
  );
}