pop method

T pop()

Implementation

T pop() {
  if (_stack.isEmpty) {
    throw StateError('Stack is empty');
  }
  return _stack.removeLast();
}