copyWith method

Person copyWith({
  1. String? id,
  2. Name? nmae,
  3. String? email,
  4. Phone? phone,
  5. String? birthdate,
  6. String? personalNumber,
  7. String? coordinationNumber,
  8. String? gdNumber,
  9. String? countryResidence,
  10. bool? isPep,
  11. bool? isSancyioned,
})

Implementation

Person copyWith({
  String? id,
  Name? nmae,
  String? email,
  Phone? phone,
  String? birthdate,
  String? personalNumber,
  String? coordinationNumber,
  String? gdNumber,
  String? countryResidence,
  bool? isPep,
  bool? isSancyioned,
}) {
  return Person(
    id: id ?? this.id,
    nmae: nmae ?? this.nmae,
    email: email ?? this.email,
    phone: phone ?? this.phone,
    birthdate: birthdate ?? this.birthdate,
    personalNumber: personalNumber ?? this.personalNumber,
    coordinationNumber: coordinationNumber ?? this.coordinationNumber,
    gdNumber: gdNumber ?? this.gdNumber,
    countryResidence: countryResidence ?? this.countryResidence,
    isPep: isPep ?? this.isPep,
    isSancyioned: isSancyioned ?? this.isSancyioned,
  );
}