HistoryMiddleware<T> class

History middleware - keeps track of previous values.

Inheritance

Constructors

HistoryMiddleware({int maxHistory = 10})

Properties

hashCode int
The hash code for this object.
no setterinherited
history List<T>
Get the history of values.
no setter
maxHistory int
final
previous → T?
Get the previous value (if any).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
process(T oldValue, T newValue) → T
override
toString() String
A string representation of this object.
inherited

Operators

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