getAnchor method

  1. @override
String? getAnchor()
override

Returns the anchor name if this token is anchored.

For tokens with anchors (e.g., &anchor value), returns the anchor name. Returns null if no anchor is present.

Implementation

@override
String? getAnchor() => _currentAnchor;