copyWith method

CountryCode copyWith({
  1. String? name,
  2. String? dialCode,
  3. String? code,
})

Implementation

CountryCode copyWith({
  String? name,
  String? dialCode,
  String? code,
}) {
  return CountryCode(
    name: name ?? this.name,
    dialCode: dialCode ?? this.dialCode,
    code: code ?? this.code,
  );
}