copyWith method
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,
);
}