getItemId static method

int getItemId(
  1. dynamic index
)

Implementation

static int getItemId(index) {
  if (index < 0 || index > _values.length) {
    return UNSUPPORTED.getId();
  }

  return _values[index].getId();
}