copyWith method

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

Implementation

CameraPositionChange copyWith({
  Optional<GeoPoint?>? point,
  Optional<Zoom?>? zoom,
  Optional<Tilt?>? tilt,
  Optional<Bearing?>? bearing
}) {
  return CameraPositionChange(
    point: point != null ? point.value : this.point,
    zoom: zoom != null ? zoom.value : this.zoom,
    tilt: tilt != null ? tilt.value : this.tilt,
    bearing: bearing != null ? bearing.value : this.bearing
  );
}