getItemId static method

int getItemId(
  1. dynamic index
)

Implementation

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

  return _values[index].getPaperId();
}