adopt method

void adopt(
  1. Object value
)

Put value in the place of its type, when that type is registered and not overridden. Dox calls it for the providers of AppConfig.providers, so the container gives the same instance.

Implementation

void adopt(Object value) {
  Type type = value.runtimeType;
  _Binding? binding = _bindings[type];
  if (binding == null || _overrides.contains(type)) return;
  _bindings[type] = _Binding(_made, shared: true, value: value);
}