Sequential<T> class abstract

Something that can move to a next/previous element.

This is used instead of BidirectionalIterator because we need to know whether or not there is a next/prev element, without necessarily moving to the next/prev element.

Implementers

Constructors

Sequential()

Properties

hashCode int
The hash code for this object.
no setterinherited
hasNext ObservableView<bool?>
true if there's a next item to advance to.
no setter
hasPrev ObservableView<bool?>
true if there's a previous item to revert to.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

next() → T
Tries to advance to the next item, and returns it if possible.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prev() → T
Tries to revert to the previous item, and returns it if possible.
toString() String
A string representation of this object.
inherited

Operators

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