copyWith method

ShippingCoverage copyWith({
  1. String? estimationDays,
  2. String? shippingDeliveryDays,
  3. String? price,
  4. int? anotherCoveredBranches,
  5. bool? isCovered,
})

Implementation

ShippingCoverage copyWith({
  String? estimationDays,
  String? shippingDeliveryDays,
  String? price,
  int? anotherCoveredBranches,
  bool? isCovered,
}) {
  return ShippingCoverage(
    estimationDays: estimationDays ?? this.estimationDays,
    shippingDeliveryDays: shippingDeliveryDays ?? this.shippingDeliveryDays,
    price: price ?? this.price,
    anotherCoveredBranches:
        anotherCoveredBranches ?? this.anotherCoveredBranches,
    isCovered: isCovered ?? this.isCovered,
  );
}