next property

T get next

Implementation

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