next method

void next()

Implementation

void next() {
  if (_index < _items.length - 1) {
    _index++;
  } else {
    _completed = true;
  }
}