MessageStyle class

Styling and settings for MessagesList.

Constructors

MessageStyle({EdgeInsets padding = EdgeInsets.zero, ScrollPhysics? physics, double avatarWidth = 48.0, Color? selectionColor, AvatarBehaviour avatarBehaviour = AvatarBehaviour.alwaysBottom})
const

Properties

avatarBehaviour AvatarBehaviour
Only used for incoming messages
final
avatarWidth double
Constrained width for the avatar, when displayed if an avatarBuilder is supplied but no avatar is built due to positioning, avatarWidth is also used to build an empty container to align all messages.
final
hashCode int
The hash code for this object.
no setterinherited
padding EdgeInsets
The outer padding of each tile
final
physics ScrollPhysics?
ScrollPhysics parameter for the list of messages. Defaults to platform default.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionColor Color?
The foreground color applied to the whole item when it is selected Defaults to Colors.white.withAlpha(50)
final

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