copyWith method
Creates a copy of this contact phone with the given fields replaced with new values
Implementation
ContactPhone copyWith({
String? number,
PhoneLabel? label,
String? customLabel,
bool? isPrimary,
}) {
return ContactPhone(
number: number ?? this.number,
label: label ?? this.label,
customLabel: customLabel ?? this.customLabel,
isPrimary: isPrimary ?? this.isPrimary,
);
}