text property
{@inheritDoc}
The implementation for [TokenTagToken] returns the token tag formatted with {@code <} and {@code >} delimiters.
Implementation
@override
String get text {
if (label != null) {
return '<' + label! + ':' + tokenName + '>';
}
return '<' + tokenName + '>';
}
Explicitly set the text for this token. If {code text} is not null, then {@link #getText} will return this value rather than extracting the text from the input.
@param text The explicit text of the token, or null if the text should be obtained from the input along with the start and stop indexes of the token.
Implementation
@override
set text(String? text) {
_text = text;
}