getByValue static method

FaceCaptureErrorCode? getByValue(
  1. int? i
)

Implementation

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