MessageBubbleBuilder class

消息气泡构建器 提供统一的接口来创建不同样式的消息气泡

Constructors

MessageBubbleBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

buildBubble({required ChatMessage message, String style = styleNormal, VoidCallback? onTap}) Widget
构建消息气泡
buildMessageList({required List<ChatMessage> messages, String style = styleNormal, dynamic onMessageTap(ChatMessage)?}) List<Widget>
批量构建消息列表
buildWithAutoStyle({required ChatMessage message, bool useSpecialStyle = false, VoidCallback? onTap}) Widget
根据消息类型自动选择样式

Constants

styleCup → const String
styleDachshund → const String
气泡样式枚举
styleMinimal → const String
styleNormal → const String