Token constructor

Token(
  1. String text,
  2. TokenType type
)

Creates a new Token with the given text and type.

Implementation

Token(this.text, this.type);