copyWith method

  1. @override
Receipt copyWith({
  1. String? email,
  2. String? phone,
  3. String? emailCompany,
  4. Taxation? taxation,
  5. List<Items>? items,
})
override

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

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,
  );
}