copyWith method

OrderModel copyWith({
  1. String? vendorOrderId,
  2. int? stage,
  3. Order? order,
})

Implementation

OrderModel copyWith({
  String? vendorOrderId,
  int? stage,
  Order? order,
}) =>
    OrderModel(
      vendorOrderId: vendorOrderId ?? this.vendorOrderId,
      stage: stage ?? this.stage,
      order: order ?? this.order,
    );