getByValue static method

ProcessingMode? getByValue(
  1. int? i
)

Implementation

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