getItemId static method

int getItemId(
  1. dynamic index
)

Implementation

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

  return _values[index].getId();
}