getByNameOrNull static method
Retrieves a Language instance by its name, or null
if not found.
Implementation
static Language? getByNameOrNull(String name) {
final index = values.indexWhere((l) => l.name == name);
return index != -1 ? values[index] : null;
}