hasNext property

bool get hasNext

Whether the iterator has a next element.

Should be checked to be true before calling next.

Implementation

bool get hasNext => _ensureHasNext;