removeLast method

  1. @override
E removeLast()

Removes and returns the last element of the queue.

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

Implementation

@override
E removeLast() {
  final element = super.removeLast();
  notifyListeners();
  return element;
}