getState method

Event? getState(
  1. String typeKey, [
  2. String stateKey = ''
])

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];