HakoStateEvent<T> constructor
const
HakoStateEvent<T> (
- T current, {
- String? name,
Creates a new HakoStateEvent with the specified state value and optional name.
T The type of the state value.
current The current state value involved in the event.
name An optional identifier for the state value. Used when multiple
state values of the same type need to be distinguished.
Implementation
const HakoStateEvent(this.current, {String? name}) : key = (T, name);