getReplyTitle function

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

Implementation

getReplyTitle(bool isMessageSentByMe, String senderUserName) {
  return isMessageSentByMe
      ? Text(
          AppConstants.you,
          style: TextStyle(
            fontWeight: FontWeight.bold,
            color: MirrorflyUikit
                .getTheme?.chatBubblePrimaryColor.textPrimaryColor,
          ),
        )
      : Text(senderUserName,
          style: TextStyle(
            fontWeight: FontWeight.bold,
            color: MirrorflyUikit
                .getTheme?.chatBubbleSecondaryColor.textPrimaryColor,
          ));
}