set<T> method

void set<T>(
  1. dynamic data, [
  2. Object? tag
])

Implementation

void set<T>(dynamic data, [Object? tag]) {
  if (tag != null) {
    _state[tag] = data;
    return;
  }
  _state[T] = data;
}