fromTag static method
- 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);
}
Returns a Language identified by its tag
from the L10n.languages, if
any.
static Language? fromTag(String? tag) {
return L10n.languages.firstWhereOrNull((e) => e.toString() == tag);
}