copyWith method
PaymayaItem
copyWith({
- String? name,
- num? quantity,
- String? code,
- String? description,
- PaymayaAmount? amount,
- PaymayaAmount? totalAmount,
Paymaya Item
Example:
final item = PaymayaItem(
name: 'Shoe(Size SX)',
);
Implementation
PaymayaItem copyWith({
String? name,
num? quantity,
String? code,
String? description,
PaymayaAmount? amount,
PaymayaAmount? totalAmount,
}) {
return PaymayaItem(
name: name ?? this.name,
quantity: quantity ?? this.quantity,
code: code ?? this.code,
description: description ?? this.description,
amount: amount ?? this.amount,
totalAmount: totalAmount ?? this.totalAmount,
);
}