StreamMessageTile class
Renders a single message: avatar, author line, bubble, attachments, reactions, and the controls that act on it.
Consecutive messages from the same author are visually grouped by the
parent list, which passes showAvatar: false and showAuthor: false for
every message after the first in a run.
Constructors
-
StreamMessageTile({required Message message, required bool isOwn, bool showAvatar = true, bool showAuthor = true, bool showActions = true, bool showDeliveryState = false, List<
User> readBy = const [], bool highlighted = false, void onQuotedMessageTap(Message quoted)?, Key? key}) -
Creates a message tile.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlighted → bool
-
Whether to draw attention to this message, used when jumping to a search
result.
final
- isOwn → bool
-
Whether the message was sent by the connected user.
final
- key → Key?
-
Controls how one component replaces another component in the tree.
finalinherited
- message → Message
-
The message to render.
final
- onQuotedMessageTap → void Function(Message quoted)?
-
Called when the quoted message preview is activated.
final
-
readBy
→ List<
User> -
Users who have read this message, excluding its author.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showActions → bool
-
Whether to offer reactions and the action menu on hover.
final
- showAuthor → bool
-
Whether to render the author name and timestamp above the bubble.
final
- showAvatar → bool
-
Whether to render the author's avatar next to the bubble.
final
- showDeliveryState → bool
-
Whether to render the sending or read indicator under the bubble.
final
-
Whether to render the reply count that opens the thread.
final
Methods
-
build(
BuildContext context) → Component - Describes the part of the user interface represented by this component.
-
createElement(
) → Element -
Creates a
StatelessElementto manage this component's location in the tree.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldRebuild(
covariant Component newComponent) → bool -
Implement this method to determine whether a rebuild can be skipped.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited