copyWith method
Создает экземпляр с заданными параметрами
Implementation
@override
Receipt copyWith({
String? email,
String? phone,
String? emailCompany,
Taxation? taxation,
List<Items>? items,
}) {
return Receipt(
email: email ?? this.email,
phone: phone ?? this.phone,
emailCompany: emailCompany ?? this.emailCompany,
taxation: taxation ?? this.taxation,
items: items ?? this.items,
);
}