fromTag static method

Language? fromTag(
  1. String? tag
)

Returns a Language identified by its tag from the L10n.languages, if any.

Implementation

static Language? fromTag(String? tag) {
  return L10n.languages.firstWhereOrNull((e) => e.toString() == tag);
}