peek method

Token? peek()

Implementation

Token? peek() {
  if (_index < tokens.length - 1) {
    return tokens[_index + 1];
  }

  return null;
}