pop method

T pop()

Removes and returns the top element.

Implementation

T pop() {
  final res = _list.last;
  _list.removeLast();
  return res;
}