getMention method
Implementation
Widget getMention(BuildContext context, Mention mention) {
return RichText(
text: TextSpan(
text: mention.title,
recognizer: TapGestureRecognizer()
..onTap = () => messageOptions.onPressMention != null
? messageOptions.onPressMention!(mention)
: null,
style: TextStyle(
color: isOwnMessage
? messageOptions.currentUserTextColor(context)
: messageOptions.textColor,
decoration: TextDecoration.none,
fontWeight: FontWeight.w600,
),
),
);
}