MessageListView class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- MessageListView
Constructors
-
MessageListView({Widget showLoadEarlierWidget()?, double? avatarMaxSize, bool? shouldShowLoadEarlier, BoxConstraints? constraints, Function? onLoadEarlier, required dynamic defaultLoadCallback(bool), EdgeInsets messageContainerPadding = const EdgeInsets.only(top: 10.0, right: 10.0, left: 10.0), ScrollController? scrollController, List<
MatchText> parsePatterns = const [], BoxDecoration? messageContainerDecoration, required List<ChatMessage> messages, required ChatUser user, bool? showuserAvatar, DateFormat? dateFormat, DateFormat? timeFormat, bool? showAvatarForEverMessage, required bool inverted, dynamic onLongPressAvatar(ChatUser)?, dynamic onLongPressMessage(ChatMessage)?, dynamic onPressAvatar(ChatUser)?, bool? renderAvatarOnTop, Widget messageBuilder(ChatMessage)?, Widget avatarBuilder(ChatUser)?, Widget dateBuilder(String)?, Widget messageImageBuilder(String?, [ChatMessage])?, Widget messageTextBuilder(String?, [ChatMessage])?, Widget messageTimeBuilder(String, [ChatMessage])?, Function? changeVisible, bool? visible, bool? showLoadMore, List<Widget> messageButtonsBuilder(ChatMessage)?, EdgeInsets messagePadding = const EdgeInsets.all(8.0), bool textBeforeImage = true, BoxDecoration messageDecorationBuilder(ChatMessage, bool?)?})
Properties
- avatarBuilder → (Widget Function(ChatUser)?)
-
final
- avatarMaxSize → double?
-
final
- changeVisible → Function?
-
final
- constraints → BoxConstraints?
-
final
- dateBuilder → (Widget Function(String)?)
-
final
- dateFormat → DateFormat?
-
final
- defaultLoadCallback → dynamic Function(bool)
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inverted → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- messageBuilder → (Widget Function(ChatMessage)?)
-
final
-
messageButtonsBuilder
→ (List<
Widget> Function(ChatMessage)?) -
final
- messageContainerDecoration → BoxDecoration?
-
final
- messageContainerPadding → EdgeInsets
-
final
- messageDecorationBuilder → (BoxDecoration Function(ChatMessage, bool?)?)
-
final
- messageImageBuilder → (Widget Function(String?, [ChatMessage])?)
-
final
- messagePadding → EdgeInsets
-
final
-
messages
→ List<
ChatMessage> -
final
- messageTextBuilder → (Widget Function(String?, [ChatMessage])?)
-
final
- messageTimeBuilder → (Widget Function(String, [ChatMessage])?)
-
final
- onLoadEarlier → Function?
-
final
- onLongPressAvatar → (dynamic Function(ChatUser)?)
-
final
- onLongPressMessage → (dynamic Function(ChatMessage)?)
-
final
- onPressAvatar → (dynamic Function(ChatUser)?)
-
final
-
parsePatterns
→ List<
MatchText> -
final
- renderAvatarOnTop → bool?
-
final
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
final
- shouldShowLoadEarlier → bool?
-
final
- showAvatarForEverMessage → bool?
-
final
- showLoadEarlierWidget → (Widget Function()?)
-
final
- showLoadMore → bool?
-
final
- showuserAvatar → bool?
-
final
- textBeforeImage → bool
-
final
- timeFormat → DateFormat?
-
final
- user → ChatUser
-
final
- visible → bool?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _MessageListViewState -
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}) → 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