pop method
T
pop()
Implementation
T pop() {
if (isEmpty) {
throw StateError('Cannot pop() on empty stack.');
}
return _underlyingQueue.removeLast();
}
T pop() {
if (isEmpty) {
throw StateError('Cannot pop() on empty stack.');
}
return _underlyingQueue.removeLast();
}