clear method
Empties it, keeping the storage; lets go of what it held.
Implementation
void clear() {
_items.fillRange(0, _length, null);
_length = 0;
}
Empties it, keeping the storage; lets go of what it held.
void clear() {
_items.fillRange(0, _length, null);
_length = 0;
}