getByValue static method

LCID? getByValue(
  1. int? i
)

Implementation

static LCID? getByValue(int? i) {
  if (i == null) return null;
  try {
    return LCID.values.firstWhere((x) => x.value == i);
  } catch (_) {
    return LCID.UNKNOWN;
  }
}