getByIndex<T> static method

T getByIndex<T>(
  1. List<T> values,
  2. int index
)

Implementation

static T getByIndex<T>(List<T> values, int index) {
  return values.elementAt(index - 1);
}