AnchorRenderer typedef

AnchorRenderer = InlineSpan? Function(BuildContext context, FormatusAnchor anchor)

Signature for callback onRenderAnchor.

Invoked once per anchor element found in the viewed text. Return an InlineSpan to be displayed in place of the anchor's plain text. If not supplied, or if it returns null, the anchor is rendered as plain, non-interactive text.

Implementation

typedef AnchorRenderer =
    InlineSpan? Function(BuildContext context, FormatusAnchor anchor);