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 CometChatCollaborativeWhiteBoardBubble(
    url: getWebViewUrl(customMessage),
    style: WhiteBoardBubbleStyle(
        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),
  );
}