top method

T top()

Returns the top element without removing it.

Implementation

T top() => _list.last;