SequentialGetter<T, R> class
abstract
Represents a utility for getting attributes of a sequential context.
A sequential means that more than one value is involved (e.g. fetching data sequentially from a sensor). To be able to extract attributes from sequential data, this utility provides an accept method, which can be called multiple times. Every time accept is called, an attribute can be extracted (e.g. the first value passed as argument, the last value passed as argument, how many values were passed as argument overall).
- Implementers
Constructors
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) → R -
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
Static Methods
-
first<
T> () → FirstValueGetter< T> -
Evaluates the first value passed to the accept method of this object.
-
previous<
T> () → PreviousValueGetter< T> -
Evaluates the previous value passed to the accept method of this object,
returning
null
in the first call.