copyWith method

PayerModel copyWith({
  1. String? cpfOrCnpj,
  2. String? name,
  3. String? phonePrefix,
  4. String? phone,
  5. String? email,
  6. AddressModel? address,
})

Implementation

PayerModel copyWith({
  String? cpfOrCnpj,
  String? name,
  String? phonePrefix,
  String? phone,
  String? email,
  AddressModel? address,
}) {
  return PayerModel(
    cpfOrCnpj: cpfOrCnpj ?? this.cpfOrCnpj,
    name: name ?? this.name,
    phonePrefix: phonePrefix ?? this.phonePrefix,
    phone: phone ?? this.phone,
    email: email ?? this.email,
    address: address ?? this.address,
  );
}