dequeue method
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();
}
Removes and returns the oldest EventRequest from the front of the queue.
Returns null if the queue is empty.
EventRequest? dequeue() {
if (_queue.isEmpty) return null;
return _queue.removeFirst();
}