copyWith method

ParkingCapacity copyWith({
  1. Optional<String?>? total,
  2. List<SpecialSpace>? specialSpaces,
})

Implementation

ParkingCapacity copyWith({
  Optional<String?>? total,
  List<SpecialSpace>? specialSpaces
}) {
  return ParkingCapacity(
    total: total != null ? total.value : this.total,
    specialSpaces: specialSpaces ?? this.specialSpaces
  );
}