next property

T next

Implementation

T get next {
  if (index >= values.length) {
    index = 0;
  }
  return values[index++];
}