FirstValueGetter<T> class

Evaluates the first value passed to the accept method of this object.

final FirstValueGetter<int> getter = SequentialGetter.first();
print(getter.accept(1));   // 1
print(getter.accept(7));   // 1
print(getter.accept(2));   // 1
print(getter.accept(5));   // 1
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