toList method Null safety
override
Returns a list of the elements of this queue in priority order.
The queue is not modified.
The order is the order that the elements would be in if they were removed from this queue using removeFirst.
Implementation
@override
List<E> toList() => _toUnorderedList()..sort(comparison);