isEmpty property

bool get isEmpty

Implementation

bool get isEmpty {
  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)) {
        return false;
      }
    }
    return true;
  } finally {
    _world.endQuery();
  }
}