dequeue method

EventRequest? dequeue()

Removes and returns the oldest EventRequest from the front of the queue.

Returns null if the queue is empty.

Implementation

EventRequest? dequeue() {
  if (_queue.isEmpty) return null;
  return _queue.removeFirst();
}