read<T> method

dynamic read<T>([
  1. Object? tag
])

Implementation

read<T>([Object? tag]) {
  if (tag != null) {
    return _state[tag] as T;
  }
  return _state[T];
}