ChatBubble class

Chat Bubble Class

Inheritance

Constructors

ChatBubble.new({Key? key, required Message message, required int currentMessageIndex, required ChatUser chatUser, required List<ImageMessage> imageMessages, required bool showUserAvatarInChat, int? previousMessageCreatedAt, required void setSelectedMessages(List<Message> message), required List<Message> selectedMessages, CustomWidgetBuilder? videoWidgetBuilder, CustomWidgetBuilder? pdfWidgetBuilder, CustomWidgetBuilder? customWidgetBuilder, void onTappedRepliedMessagePreview(Message reply)?, required void setReplyMessage(Message reply)})
Chat Bubble.
const

Properties

chatUser ChatUser
current ChatUser
final
currentMessageIndex int
Index of the current message
final
customWidgetBuilder CustomWidgetBuilder?
Custom widget to be used for displaying Custom messages
final
hashCode int
The hash code for this object.
no setterinherited
imageMessages List<ImageMessage>
List of image messages
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
message Message
Current message
final
onTappedRepliedMessagePreview → void Function(Message reply)?
When a replied message preview is tapped
final
pdfWidgetBuilder CustomWidgetBuilder?
PDF widget to be used for displaying PDF messages
final
previousMessageCreatedAt int?
timestamp of previous message
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedMessages List<Message>
List of selected messages
final
setReplyMessage → void Function(Message reply)
Set Replying Message
final
setSelectedMessages → void Function(List<Message> message)
Callback to set selected messages
final
showUserAvatarInChat bool
Set to true for all peers in group chat to have their avatar shown
final
videoWidgetBuilder CustomWidgetBuilder?
Video widget to be used for displaying video messages
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ChatBubble>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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