each method
Implementation
void each(EntityQueryCallback callback) {
final driver = Query.chooseDriver(_withStores);
_world.beginQuery(this);
try {
for (var i = 0; i < driver.length; i++) {
final entityIndex = driver.entityIndexAt(i);
if (!Query.passesFilters(entityIndex, _withStores, _withoutStores)) {
continue;
}
callback(_world.entities.resolve(entityIndex));
}
} finally {
_world.endQuery();
}
}