peek method

T? peek()

Implementation

T? peek() {
  if (isEmpty) return null;
  return _underlyingQueue.last;
}