toString method
This method returns a text representation of the tag chunk. Labeled tags are returned in the form {@code label:tag}, and unlabeled tags are returned as just the tag name.
Implementation
@override
String toString() {
if (label != null) {
return label! + ':' + tag;
}
return tag;
}