copyWith method
Implementation
PaywayTransactionItem copyWith({
String? name,
double? quantity,
double? price,
}) {
return PaywayTransactionItem(
name: name ?? this.name,
quantity: quantity ?? this.quantity,
price: price ?? this.price,
);
}