toString method Null safety

  1. @override
String toString()
override

Returns some representation of the queue.

The format isn't significant, and may change in the future.

Implementation

@override
String toString() {
  return _queue.take(_length).toString();
}