copyWith method
Создает экземпляр с заданными параметрами
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,
);
}