copyWith method
Create new PhoneNumber instance by modifying
Implementation
PhoneNumber copyWith({
Country? country,
String? nationalNumber,
String? formattedNumber,
bool? isValid,
}) =>
PhoneNumber._(
country: country ?? this.country,
nationalNumber: nationalNumber ?? this.nationalNumber,
formattedNumber: formattedNumber ?? this.formattedNumber,
isValid: isValid ?? this.isValid,
);