peekLast method
E?
peekLast()
Returns the last element without removing it.
Implementation
E? peekLast() {
return _tail?.data;
}
Returns the last element without removing it.
E? peekLast() {
return _tail?.data;
}