findState method

T? findState(
  1. Key key
)

Returns the state associated with the given key, or null if not found.

Implementation

T? findState(Key key) {
  return states[key];
}