copyWith method

ItemCheck copyWith({
  1. String? name,
  2. double? price,
  3. double? quantity,
  4. String? measurementUnit,
  5. PaymentObjectCheck? paymentObjectCheck,
})

Implementation

ItemCheck copyWith({
  String? name,
  double? price,
  double? quantity,
  String? measurementUnit,
  PaymentObjectCheck? paymentObjectCheck,
}) {
  return ItemCheck(
    name: name ?? this.name,
    price: price ?? this.price,
    quantity: quantity ?? this.quantity,
    measurementUnit: measurementUnit ?? this.measurementUnit,
    paymentObjectCheck: paymentObjectCheck ?? this.paymentObjectCheck,
  );
}