getByValue static method

DetectFacesErrorCode? getByValue(
  1. int? i
)

Implementation

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