registerState<T> method

void registerState<T>(
  1. String key,
  2. Rx<T> state
)

Register state in this scope

Implementation

void registerState<T>(String key, Rx<T> state) {
  if (_disposed) {
    throw StateError('Cannot register state in disposed scope "$id"');
  }
  _state[key] = state;
}