copyWith method
Returns a copy of this CountryCode with the given values updated.
Implementation
CountryCode copyWith({
String? name,
String? code,
String? dialCode,
int? nationalSignificantNumber,
}) {
return CountryCode(
name: name ?? this.name,
code: code ?? this.code,
dialCode: dialCode ?? this.dialCode,
nationalSignificantNumber:
nationalSignificantNumber ?? this.nationalSignificantNumber,
);
}