getReplyTitle function

dynamic getReplyTitle(
  1. bool isMessageSentByMe,
  2. String senderUserName,
  3. TextStyle textStyle
)

Implementation

getReplyTitle(
    bool isMessageSentByMe, String senderUserName, TextStyle textStyle) {
  return isMessageSentByMe
      ? Text(
          getTranslated("you"),
          style: textStyle,
          // style: const TextStyle(fontWeight: FontWeight.bold),
        )
      : Text(
          senderUserName,
          style:
              textStyle, /*style: const TextStyle(fontWeight: FontWeight.bold)*/
        );
}