copyWith method

  1. @override
Payments copyWith({
  1. int? cash,
  2. int? electronic,
  3. int? advancePayment,
  4. int? credit,
  5. int? provision,
})
override

Создает экземпляр с заданными параметрами

Implementation

@override
Payments copyWith({
  int? cash,
  int? electronic,
  int? advancePayment,
  int? credit,
  int? provision,
}) {
  return Payments(
    cash: cash ?? this.cash,
    electronic: electronic ?? this.electronic,
    advancePayment: advancePayment ?? this.advancePayment,
    credit: credit ?? this.credit,
    provision: provision ?? this.provision,
  );
}