MarkdownTapMentionCallback typedef

MarkdownTapMentionCallback = void Function(String displayText, String id)

Callback fired when a user-type mention link is tapped.

displayText is the raw display text from the link (e.g., '@Alice' from [@Alice](mention:user123)). id is the mention identifier (the URL-decoded portion after the mention: scheme).

Only invoked for user-type mentions. To handle the full set of mention kinds (channel / here / role / group) in a single callback, use MarkdownTapAnyMentionCallback.

Implementation

typedef MarkdownTapMentionCallback = void Function(String displayText, String id);