declareDefinition method
Implementation
void declareDefinition(BeanDefinition bean) {
final ScopeDefinition? scopeDef =
scopeDefinitions[bean.scopeQualifier];
scopeDef?.save(bean);
_scopes.values
.where((scope) => scope.scopeDefinition == scopeDef)
.forEach((scope) {
scope.loadDefinition(bean);
});
}