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