fromValue static method

Language fromValue(
  1. int? value
)

Implementation

static Language fromValue(int? value) {
  return values.firstWhere(
    (element) => element.value == value,
    orElse: () => throw MessageException(
        "No Language found matching the specified value",
        details: {"value": value}),
  );
}