Token class
Holds information about the token.
- Annotations
Constructors
- Token.placeholder(String name)
-
Create a TokenType.placeholder token with the given
name
.factory - Token.text(String text)
-
Create a TokenType.text token with the given
text
.factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → TokenType
-
The token type
final
- value → String
-
Value of the token. If the token is a TokenType.text, holds the text
value. If the token is a TokenType.placeholder, holds the name of the
placeholder.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override