DVDocsLinkSpan typedef

DVDocsLinkSpan = InlineSpan? Function(BuildContext context, String text, DVDocsTarget target)

How a link span is drawn, or null for a target nothing is at.

The document says where a link points; whether anything is there is the site's knowledge, not the document's. A link to a page the build no longer wrote is a link to nowhere, and the answer to that is its own text rather than a 404 in the middle of a paragraph.

Implementation

typedef DVDocsLinkSpan =
    InlineSpan? Function(BuildContext context, String text, DVDocsTarget target);