name property

String get name

Returns the English common name for the language if the language code is valid.

Returns toLanguageTag if the language code is not valid.

Implementation

String get name =>
    _languages[toLanguageTag()] ??
    _languages[languageCode] ??
    toLanguageTag();