add method
Add a new element
. If the element already exists, nothing changes.
Implementation
void add(int element) {
if (element >= _entities.length) {
_entities = BitSet.fromBitSet(_entities, length: element);
}
_entities[element] = true;
}