getMention method

Widget getMention(
  1. BuildContext context,
  2. Mention mention
)

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,
      ),
    ),
  );
}