getTemplate method
Implementation
CometChatMessageTemplate getTemplate({CometChatTheme? theme}) {
CometChatTheme theme0 = theme ?? cometChatTheme;
return CometChatMessageTemplate(
type: collaborativeDocumentExtensionTypeConstant,
category: CometChatMessageCategory.custom,
contentView: (BaseMessage message, BuildContext context,
BubbleAlignment alignment,
{AdditionalConfigurations? additionalConfigurations}) {
return getContentView(message as CustomMessage, theme0, context);
},
options: CometChatUIKit.getDataSource().getCommonOptions,
bottomView: CometChatUIKit.getDataSource().getBottomView);
}