copyWith method

SalesOrderData copyWith({
  1. int? id,
  2. DateTime? orderDateTime,
  3. double? amount,
  4. double? taxAmount,
  5. String? status,
  6. int? sellerId,
  7. int? customerId,
})

Implementation

SalesOrderData copyWith({
  int? id,
  DateTime? orderDateTime,
  double? amount,
  double? taxAmount,
  String? status,
  int? sellerId,
  int? customerId,
}) => SalesOrderData(
  id: id ?? this.id,
  orderDateTime: orderDateTime ?? this.orderDateTime,
  amount: amount ?? this.amount,
  taxAmount: taxAmount ?? this.taxAmount,
  status: status ?? this.status,
  sellerId: sellerId ?? this.sellerId,
  customerId: customerId ?? this.customerId,
);