clear method
Clears the map.
If full is true, internal storage is fully reallocated.
Otherwise, buffers are reused to minimize allocations.
Implementation
@override
void clear({bool full = false}) {
_size = 0;
if (full) {
_chainKey = [];
_chainVal = [];
_chainHash = Uint32List(8);
_chainNext = _newUIntList(8, 8);
} else {
_chainKey.clear();
_chainVal.clear();
_chainHash.fillRange(0, _chainLength, 0);
_chainNext.fillRange(0, _chainLength, 0);
}
_chainLength = 0;
_groups = Uint32List(8);
_groupsSizes = Uint32List(8);
_chainRemoved = 0;
_skipFirstChainPos();
}