registerKey method

  1. @mustCallSuper
  2. @internal
void registerKey(
  1. ComponentKey key,
  2. Component component
)
inherited

Implementation

@mustCallSuper
@internal
void registerKey(ComponentKey key, Component component) {
  assert(!_index.containsKey(key), 'Key $key is already registered');
  _index[key] = component;
}