getByValue static method

MeasureSystem? getByValue(
  1. int? i
)

Implementation

static MeasureSystem? getByValue(int? i) {
  if (i == null) return null;
  return MeasureSystem.values.firstWhere((x) => x.value == i);
}