GetEvent<T> class
An event that represents the retrieval of a state value from a Hako container.
This event is emitted whenever a state value is accessed through the get
method of a Hako instance. It contains information about the retrieved
state value and its identifying key.
The event is useful for testing, debugging, logging, or implementing reactive behaviors that need to track when specific state values are being accessed.
- Inheritance
-
- Object
- HakoEvent
- HakoStateEvent<
T> - GetEvent
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
- 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