Token constructor

const Token({
  1. required TokenType tokenType,
  2. required String lexeme,
  3. required CursorLocation start,
  4. required CursorLocation end,
  5. Object? literal,
})

Implementation

const Token({
  required this.tokenType,
  required this.lexeme,
  required this.start,
  required this.end,
  this.literal,
});