Token<T extends TokenType> constructor

const Token<T extends TokenType>({
  1. required T type,
  2. required String rawValue,
  3. int globalOffset = -1,
})

Creates the token.

Implementation

const Token(
    {required this.type, required this.rawValue, this.globalOffset = -1});