copyWith method
Person
copyWith(
{ - String? id,
- Name? nmae,
- String? email,
- Phone? phone,
- String? birthdate,
- String? personalNumber,
- String? coordinationNumber,
- String? gdNumber,
- String? countryResidence,
- bool? isPep,
- 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,
);
}