withPosition method

MapCamera withPosition({
  1. LatLng? center,
  2. double? zoom,
})

Returns a new instance of MapCamera with the given center/zoom.

Implementation

MapCamera withPosition({
  LatLng? center,
  double? zoom,
}) =>
    MapCamera(
      crs: crs,
      minZoom: minZoom,
      maxZoom: maxZoom,
      center: center ?? this.center,
      zoom: zoom ?? this.zoom,
      rotation: rotation,
      nonRotatedSize: nonRotatedSize,
      size: _cameraSize,
    );