removeFirst method
E
removeFirst()
Removes the first element from this queue.
Throws NoGuaranteeException if this queue is empty.
Implementation
E removeFirst() {
if (_elements.isEmpty) {
throw NoGuaranteeException('Queue is empty');
}
return _elements.removeAt(0);
}