copyWith method

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

Implementation

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