YAObserverEvent<V> class
This class represents a change event in an observer.
value is the current value of the observed variable or expression.
changeTime is the time when the change was detected (not necessarily the exact time
when the variables value was changed - it will be the time when the update
method of
the observer was executed).
history contains a list of past events. The maximum number of historical events to
keep is defined when constructing the observer. The latest historical event will be at
index 0
, the one before that at index 1
, and so on.
Constructors
-
YAObserverEvent(V value, DateTime changeTime, {List<
YAObserverEventHistoryEntry< history = const []})V> >
Properties
- changeTime → DateTime
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
history
→ List<
YAObserverEventHistoryEntry< V> > -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → V
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited