Token constructor

const Token({
  1. required TokenType type,
  2. required String lexeme,
  3. required int offset,
})

Creates a program token.

Implementation

const Token({
  required this.type,
  required this.lexeme,
  required this.offset,
});