jumpToWidgetIndexCallback property
set
jumpToWidgetIndexCallback
(TocIndexCallback? callback)
Sets the callback that handles jumping to a specific widget index.
This is typically set by the MarkdownWidget to enable scroll-to-index functionality when TOC items are tapped.
The callback parameter is the index in the MarkdownGenerator's widget tree.
Implementation
set jumpToWidgetIndexCallback(TocIndexCallback? callback) {
_jumpToWidgetIndexCallback = callback;
}