onNodeClick property

void Function(int startOffset, int endOffset, String latex)? onNodeClick
final

Interactive formula: Callback when clicking a sub-expression. Passes the LaTeX source range (start and end offsets) of the clicked node. If null, click interactivity is disabled

Implementation

final void Function(int startOffset, int endOffset, String latex)?
onNodeClick;