getContentView method

Widget getContentView(
  1. CustomMessage customMessage,
  2. CometChatTheme theme,
  3. BuildContext context
)

Implementation

Widget getContentView(
    CustomMessage customMessage, CometChatTheme theme, BuildContext context) {
  if (customMessage.deletedAt != null) {
    return super.getDeleteMessageBubble(customMessage, theme);
  }
  return CometChatCollaborativeDocumentBubble(
    url: getWebViewUrl(customMessage),
    title: configuration?.title,
    subtitle: configuration?.subtitle,
    buttonText: configuration?.buttonText,
    icon: configuration?.icon,
    theme: configuration?.theme,
    style: DocumentBubbleStyle(
        background: configuration?.style?.background,
        dividerColor: configuration?.style?.dividerColor,
        buttonTextStyle: configuration?.style?.buttonTextStyle,
        subtitleStyle: configuration?.style?.subtitleStyle,
        titleStyle: configuration?.style?.titleStyle,
        iconTint: configuration?.style?.iconTint,
        webViewAppBarColor: configuration?.style?.webViewAppBarColor,
        webViewBackIconColor: configuration?.style?.webViewBackIconColor,
        webViewTitleStyle: configuration?.style?.webViewTitleStyle),
  );
}