EbchatMessageBubble class
Renders a single message as a chat bubble. Guest messages align to the
trailing edge with the primary colour; bot/operator to the leading edge.
Text, image, video, voice-note and location attachments render inline;
choices attachments are handled separately by EbchatChoices, product /
catalogue / order messages by their dedicated cards. A quoted reply shows
the quoted snippet block above the content.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- EbchatMessageBubble
Constructors
- EbchatMessageBubble({Key? key, required LivechatMessage message, bool showMeta = true, LivechatMessage? quoted, EbchatStrings strings = EbchatStrings.en, VoidCallback? onQuoteTap, bool grouped = false})
-
const
Properties
- grouped → bool
-
This message continues a run from the same sender within a minute. The
avatar slot is held but left empty, so a burst of replies reads as one
block instead of a column of repeated faces.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- message → LivechatMessage
-
final
- onQuoteTap → VoidCallback?
-
Tap on the quote block (jump to the original message).
final
- quoted → LivechatMessage?
-
The message this one quotes, resolved by the parent from the transcript
(null = not loaded → placeholder block). Only read when
message.quotedMessageIdis set.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showMeta → bool
-
Show timestamp (and, for guest messages, sent/seen ticks) inside the
bubble, WhatsApp-style.
final
- strings → EbchatStrings
-
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, 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