operator [] method
Returns the state of the provided identifier.
Implementation
State<T> operator [](T identifier) => _states.containsKey(identifier)
? _states[identifier]!
: throw ArgumentError.value(
identifier, 'identifier', 'Unknown identifier');