fromName static method
Implementation
static Language fromName(String? name) {
return values.firstWhere(
(element) => element.name == name,
orElse: () => throw MessageException(
"No Language found matching the specified name",
details: {"name": name}),
);
}