map constant

A tree-shakable combined map of codeMap and codeShortMap, providing a unified view of language codes and their NaturalLanguage objects, for a O(1) access time.

Example usage:

NaturalLanguage.map[' en ']; // LangEng().

Implementation

static const map = UpperCaseIsoMap(
  {...naturalLanguageCodeMap, ...naturalLanguageCodeOtherMap},
  exactLength: null, // ignore: avoid-passing-default-values, is not default.
);