Every country with a dial code, and lookups.
final egypt = MRECountries.byIsoCode('EG')!;
final dial = egypt.dialCodeWithPlus; // '+20'
final flag = egypt.flag; // 🇪🇬
final sharing = MRECountries.byDialCode('+1'); // United States, Canada, ...
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
all
→ List<
MRECountry> -
All countries, sorted by English name.
final
Static Methods
-
byDialCode(
String dialCode) → List< MRECountry> -
The countries that use
dialCode, with or without the plus. More than one country can share a dial code. -
byIsoCode(
String isoCode) → MRECountry? -
The country with
isoCode(any case), or null.