copyWith method
ParkingInfo
copyWith({
- Optional<
ParkingType?> ? type, - ParkingPurpose? purpose,
- ParkingAccess? access,
- Optional<
ParkingPavingType?> ? pavingType, - bool? isPaid,
- bool? isIncentive,
- bool? forTrucks,
- Optional<
int?> ? levelCount, - Optional<
ParkingCapacity?> ? capacity,
Implementation
ParkingInfo copyWith({
Optional<ParkingType?>? type,
ParkingPurpose? purpose,
ParkingAccess? access,
Optional<ParkingPavingType?>? pavingType,
bool? isPaid,
bool? isIncentive,
bool? forTrucks,
Optional<int?>? levelCount,
Optional<ParkingCapacity?>? capacity
}) {
return ParkingInfo(
type: type != null ? type.value : this.type,
purpose: purpose ?? this.purpose,
access: access ?? this.access,
pavingType: pavingType != null ? pavingType.value : this.pavingType,
isPaid: isPaid ?? this.isPaid,
isIncentive: isIncentive ?? this.isIncentive,
forTrucks: forTrucks ?? this.forTrucks,
levelCount: levelCount != null ? levelCount.value : this.levelCount,
capacity: capacity != null ? capacity.value : this.capacity
);
}