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