copyWith method

OrderItemEntity copyWith({
  1. String? documentID,
  2. int? amount,
  3. String? appId,
  4. double? soldPrice,
  5. String? productId,
})

Implementation

OrderItemEntity copyWith({
  String? documentID,
  int? amount,
  String? appId,
  double? soldPrice,
  String? productId,
}) {
  return OrderItemEntity(
    amount: amount ?? this.amount,
    appId: appId ?? this.appId,
    soldPrice: soldPrice ?? this.soldPrice,
    productId: productId ?? this.productId,
  );
}