CometChatMessageBubble class
CometChatMessageBubble is a widget that provides the skeleton structure for any message bubble constructed from a CometChatMessageTemplate which doesnt have a bubbleView
it binds together the leadingView, headerView, contentView, footerView, bottomView, threadView declared in the CometChatMessageTemplate to collectively form a message bubble
CometChatMessageBubble(
alignment: BubbleAlignment.center,
leadingView: Container(),
headerView: Container(),
contentView: Container(),
footerView: Container(),
bottomView: Container(),
threadView: Container(),
replyView: Container(),
style: MessageBubbleStyle(),
);
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CometChatMessageBubble
Constructors
- CometChatMessageBubble({Key? key, MessageBubbleStyle style = const MessageBubbleStyle(), BubbleAlignment? alignment, Widget? contentView, Widget? headerView, Widget? leadingView, Widget? replyView, Widget? threadView, Widget? bottomView, Widget? statusInfoView})
-
const
Properties
- alignment → BubbleAlignment?
-
alignment alignment of the bubble
final
- bottomView → Widget?
-
bottomView widget to be shown at the bottom of the bubble
final
- contentView → Widget?
-
contentView widget to be shown in the center of the bubble
final
-
footerView widget to be shown at the bottom of the bubble
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerView → Widget?
-
headerView widget to be shown on the top of the bubble
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leadingView → Widget?
-
leadingView widget to be shown on the left side of the bubble
final
- replyView → Widget?
-
replyView widget to be shown on the top of the bubble
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusInfoView → Widget?
-
statusInfoView widget to be shown under the contentView of the bubble
final
- style → MessageBubbleStyle
-
style styling for the bubble
final
- threadView → Widget?
-
threadView widget to be shown in the center of the bubble
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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}) → 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