addComponent method
Adds the component
to the entity
.å
Implementation
void addComponent(Entity entity, Component component) {
_di.setDependency(
Dependency(
component,
metadata: DependencyMetadata(
groupEntity: entity,
index: _dependencyCount,
),
),
);
}