FluentTagBuilder typedef

FluentTagBuilder = InlineSpan Function(FluentMarkupSpan node, List<InlineSpan> children)

Builds the InlineSpan for one markup tag. node carries the tag name and its attributes (node.attrs['href'] for <a href="/help">); children are the tag's contents, already converted.

Builders own any GestureRecognizer they create — recognizers must be disposed, so create them in a State and close over them here rather than allocating inside the builder (the standard TextSpan.recognizer lifecycle rule).

Implementation

typedef FluentTagBuilder =
    InlineSpan Function(FluentMarkupSpan node, List<InlineSpan> children);