PreviousValueGetter<T> class

Evaluates the previous value passed to the accept method of this object, returning null in the first call.

final PreviousValueGetter<int> getter = SequentialGetter.previous();
print(getter.accept(1));   // null
print(getter.accept(7));   // 1
print(getter.accept(2));   // 7
print(getter.accept(5));   // 2
Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

accept(T value) → T?
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