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