removeLast method

Name? removeLast()
inherited

Removes and returns the last element of the queue.

The queue must not be empty when this method is called.

Implementation

T? removeLast() => _queue.isNotEmpty ? _queue.removeLast() : null;