copyWith method

VendorOrderModel copyWith({
  1. int? vendorId,
  2. String? priceRuleId,
  3. String? comment,
  4. DeliveryAddressEntity? deliveryAddress,
})

Implementation

VendorOrderModel copyWith({
  int? vendorId,
  String? priceRuleId,
  String? comment,
  DeliveryAddressEntity? deliveryAddress,
}) =>
    VendorOrderModel(
      vendorId: vendorId ?? this.vendorId,
      priceRuleId: priceRuleId ?? this.priceRuleId,
      comment: comment ?? this.comment,
      deliveryAddress: deliveryAddress ?? this.deliveryAddress,
    );