operator [] method

State<T> operator [](
  1. T identifier
)

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');