copyWith method

PaywayTransactionItem copyWith({
  1. String? name,
  2. double? quantity,
  3. double? price,
})

Implementation

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