hasNext property
bool
hasNext
Whether there is another item after the current index.
Implementation
bool get hasNext => nextIndex != null;
Whether there is another item after the current index.
bool get hasNext => nextIndex != null;