ISOCodeConversions class abstract Core
Utility methods for converting and inspecting ISO country and language codes.
This class provides static helpers to convert between two-letter and three-letter ISO representations (ISO-2 <-> ISO-3) for both countries and languages, and to detect which variant a given code represents.
See also:
- ISOCodeType - Enum representing the ISO code variants.
Constructors
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 Methods
-
convertCountryIso(
String code, ISOCodeType type) → String - Converts a country ISO code between ISO-2 and ISO-3 formats.
-
convertLanguageIso(
String code, ISOCodeType type) → String - Converts a language ISO code between ISO-2 and ISO-3 formats.
-
getType(
String code) → ISOCodeType - Determines the ISO code variant of the supplied code.