Language.fromIsoCode constructor

Language.fromIsoCode(
  1. String isoCode
)

Returns the Language matching the given ISO code from the standard list.

Implementation

factory Language.fromIsoCode(String isoCode) =>
    Languages.defaultLanguages.firstWhere((l) => l.isoCode == isoCode);