hasNext property

bool hasNext

Whether the iterator has a next element.

Should be checked to be true before calling next.

Implementation

bool get hasNext => _ensureHasNext;