UncheckedStrideIterator<E> class

Iterates an Iterable using a positive non-zero step size and a custom start index.

Note: Concurrent modification is not checked prior to advancing the iterator. It is assumed that the list length does not change. Should be used to iterate fixed length lists.

Inheritance

Constructors

UncheckedStrideIterator(Iterable<E> iterable, int stepSize, [int startIndex = 0])
Constructs an object of type UncheckedStrideIterator.

Properties

current → E
The current element.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stepSize int
The iteration stride.
finalinherited

Methods

moveNext() bool
Moves the iterator to the next element.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited