getByValue static method

FieldType? getByValue(
  1. int? i
)

Implementation

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