copyWith method
PhoneNumberInfo
copyWith({
- CountryInfo? country()?,
- String? countryCallingCode,
- String? formattedPhoneNumber,
- bool? isAnonymous,
- dynamic extra,
- int? clientId,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
PhoneNumberInfo copyWith({
CountryInfo? Function()? country,
String? countryCallingCode,
String? formattedPhoneNumber,
bool? isAnonymous,
dynamic extra,
int? clientId,
}) =>
PhoneNumberInfo(
country: country != null ? country() : this.country,
countryCallingCode: countryCallingCode ?? this.countryCallingCode,
formattedPhoneNumber: formattedPhoneNumber ?? this.formattedPhoneNumber,
isAnonymous: isAnonymous ?? this.isAnonymous,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);