SetEvent<T> constructor
const
SetEvent<T> (
- T previous,
- T current, {
- String? name,
Creates a new SetEvent with the specified previous and new state values and optional name.
T The type of the state value.
previous The state value that existed before the update operation.
current The new state value that was set in the Hako container.
name An optional identifier for the state value. Used when multiple
state values of the same type need to be distinguished.
Implementation
const SetEvent(this.previous, super.current, {super.name});