getByValue static method

RFIDSDKProfilerType? getByValue(
  1. int? i
)

Implementation

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