hasNext method

bool hasNext()

If the index is greater than the size, return false, otherwise return true.

Implementation

bool hasNext() => _index < _size;