copyWith method

Reciept copyWith({
  1. String? name,
  2. String? discount,
  3. num? resultPrice,
  4. num? price,
  5. num? quantity,
})

Implementation

Reciept copyWith(
    {String? name,
    String? discount,
    num? resultPrice,
    num? price,
    num? quantity}) {
  return Reciept(
    name: name ?? this.name,
    discount: discount ?? this.discount,
    quantity: quantity ?? this.quantity,
    resultPrice: resultPrice ?? this.resultPrice,
    price: price ?? this.price,
  );
}