getByValue static method

ProcessingFinishedStatus? getByValue(
  1. int? i
)

Implementation

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