customBubbleBuilder property

Widget Function(BuildContext, ChatMessage, bool)? customBubbleBuilder
final

Custom builder for message bubbles

This builder allows for complete replacement of the default message bubble. The parameters provided are:

  • BuildContext context: The build context
  • ChatMessage message: The message being rendered
  • bool isUser: Whether this message is from the current user

Return a completely custom widget that replaces the entire bubble. This provides true customization rather than just wrapping the default bubble.

Implementation

final Widget Function(BuildContext, ChatMessage, bool)? customBubbleBuilder;