Dart API Referencedart:coreIterator<E>

Iterator<E> Interface

The Iterator class provides methods to iterate over an object. It is transparently used by the for-in construct to test for the end of the iteration, and to get the elements.

Implemented by

HashSetIterator<E>, ListIterator<T>, Utf16CodeUnitDecoder, Utf8Decoder

Methods

Code bool hasNext() #

Returns whether the Iterator has elements left.

bool hasNext();

Code E next() #

Gets the next element in the iteration. Throws a NoMoreElementsException if no element is left.

E next();