getTemplate method
Implementation
CometChatMessageTemplate getTemplate({CometChatTheme? theme}) {
return CometChatMessageTemplate(
type: stickerTypeConstant,
category: CometChatMessageCategory.custom,
contentView: (BaseMessage message, BuildContext context,
BubbleAlignment alignment,
{AdditionalConfigurations? additionalConfigurations}) {
if (message.deletedAt != null) {
return super
.getDeleteMessageBubble(message, theme ?? cometChatTheme);
} else {
return CometChatStickerBubble(
messageObject: (message as CustomMessage),
);
}
},
options: CometChatUIKit.getDataSource().getCommonOptions,
bottomView: CometChatUIKit.getDataSource().getBottomView);
}