getByValue static method

ScanTypes getByValue(
  1. int value
)

Implementation

static ScanTypes getByValue(int value) {
  var r = _map[value];
  if (r == null) {
    throw Exception("`value` Not a supported ScanTypes!");
  }
  return r;
}