Language.fromIsoCode constructor

Language.fromIsoCode(
  1. String code
)

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

Implementation

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