top method

T top()

get the top of the stack without deleting it.

Implementation

T top() => _list.last;