copyWith method

  1. @override
OrderItemModel copyWith({
  1. String? documentID,
  2. int? amount,
  3. String? appId,
  4. double? soldPrice,
  5. ProductModel? product,
})
override

Implementation

@override
OrderItemModel copyWith({
  String? documentID,
  int? amount,
  String? appId,
  double? soldPrice,
  ProductModel? product,
}) {
  return OrderItemModel(
    documentID: documentID ?? this.documentID,
    amount: amount ?? this.amount,
    appId: appId ?? this.appId,
    soldPrice: soldPrice ?? this.soldPrice,
    product: product ?? this.product,
  );
}