clear method

void clear ()
override

Removes all the elements from this queue.

Implementation

void clear() {
  _queue = const [];
  _length = 0;
}