onTap property

VoidCallback? onTap
final

Invokes GptMarkdownConfig.onLinkTap for this link, or null when no handler is set.

Hand it to TappableTextSpan.onTap — or to defaultSpan, which does it for you — rather than calling onLinkTap yourself, so the arguments stay right when they change.

Implementation

final VoidCallback? onTap;