addFirst method
void
addFirst(
- T value
Adds an element to the front of the queue.
Example
final q = Ref(Queue<int>());
q.add(2);
q.addFirst(1); // queue: [1, 2]
Implementation
void addFirst(T value) {
$.addFirst(value);
notifyChange();
}