getState method
Returns the Event for the given typeKey
and optional stateKey
.
If no stateKey
is provided, it defaults to an empty string.
Implementation
Event? getState(String typeKey, [String stateKey = '']) =>
states[typeKey]?[stateKey];