copyWith method

CameraPosition copyWith({
  1. GeoPoint? point,
  2. Zoom? zoom,
  3. Tilt? tilt,
  4. Bearing? bearing,
})

Implementation

CameraPosition copyWith({
  GeoPoint? point,
  Zoom? zoom,
  Tilt? tilt,
  Bearing? bearing
}) {
  return CameraPosition(
    point: point ?? this.point,
    zoom: zoom ?? this.zoom,
    tilt: tilt ?? this.tilt,
    bearing: bearing ?? this.bearing
  );
}