SetEvent<T> class
An event that represents the modification of a state value in a Hako container.
This event is emitted whenever a state value is updated through the set
method of a Hako instance. It contains information about both the previous
and new state values, along with their identifying key.
The event is useful for testing, debugging, logging, or implementing reactive behaviors that need to track when specific state values are being modified and what changes occurred.
- Inheritance
-
- Object
- HakoEvent
- HakoStateEvent<
T> - SetEvent
Constructors
Properties
- current → T
-
The current state value involved in the event.
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- key → HakoStateKey
-
The unique identifier key for the state value involved in the event.
finalinherited
- name → String?
-
Returns the optional name identifier for the state value.
no setterinherited
- previous → T
-
The state value that existed before the update operation.
final
- 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
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override