Token constructor

Token(
  1. TokenType type,
  2. int position, {
  3. String name = "",
  4. String text = "",
  5. Map<String, String>? attributes,
  6. bool selfClosing = false,
})

Implementation

Token(this.type, this.position, { this.name = "", this.text = "", this.attributes, this.selfClosing = false });