onTap property
(void Function(Link)?)
onTap
final
called when a formatted link is pressed, it returns the link as a parameter
LinkifyText("#helloWorld", onTap: (link) {
// do stuff with link
print("${link.value} hashtag was tapped");
});
Implementation
final void Function(Link)? onTap;