clear method

*<Null safety>*
  • @override

void clear () override

Implementation

@override
void clear() {
  _modificationCount++;
  _queue = const [];
  _length = 0;
}