fromName static method

Language fromName(
  1. String? name
)

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}),
  );
}