peek method Null safety

Token? peek()

Implementation

Token? peek() {
  if (_index >= scanner.tokens.length - 1) return null;
  return scanner.tokens[_index + 1];
}