CountryCode constructor

const CountryCode({
  1. required String name,
  2. required String code,
  3. required String dialCode,
  4. int? nationalSignificantNumber,
})

A single country code item.

Contains a name, code, and dialCode.

CountryCodes are immutable and can be copied using copyWith and which are basically from List of Map<String, String> that are converted using the CountryCode.fromMap method.

You can also get the widget that contains the CountryCode's flag image by calling the flagImage getter method.

Implementation

const CountryCode({
  required this.name,
  required this.code,
  required this.dialCode,
  this.nationalSignificantNumber,
});