ChatsListTileBuilders<T extends ChatBase> class
Constructors
-
ChatsListTileBuilders({ChatsWidgetBuilder<ChatBase>? leading, Widget groupAvatarBuilder(BuildContext context, int imageIndex, int itemIndex, Size size, T item)?, ChatsWidgetBuilder<ChatBase>? unreadBubbleBuilder, ChatsWidgetBuilder<ChatBase>? midSection, ChatsWidgetBuilder<ChatBase>? titleBuilder, DateBuilder? dateBuilder, ChatsWidgetBuilder<ChatBase>? lastMessageBuilder, ChatsWidgetBuilder<ChatBase>? trailing, Widget wrapper(BuildContext context, int index, T item, Widget child)? = _defaultChatsListTileWrapper})
-
const
Properties
-
dateBuilder
→ DateBuilder?
-
Builder used only if midSection is null and titleBuilder is null
Replaces the default date Widget
final
-
groupAvatarBuilder
→ Widget Function(BuildContext context, int imageIndex, int itemIndex, Size size, T item)?
-
Builder used by GroupAvatar in
ChatsListTile._buildLeading
if leading is null.
Must be provided if leading is null.
Build your individual image widget with it.
The image widgets you provide will then be aggregated by GroupAvatar.
itemIndex
is the position of the item (tile) in the list.
imageIndex
is the avatar's position with the following map.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
lastMessageBuilder
→ ChatsWidgetBuilder<ChatBase>?
-
Builder used only if midSection is null.
Replaces the default last message Widget.
final
-
leading
→ ChatsWidgetBuilder<ChatBase>?
-
Pass a custom leading Widget to replace the default in
ChatsListTile._buildLeading
final
-
midSection
→ ChatsWidgetBuilder<ChatBase>?
-
Pass a custom mid section Widget to replace the default
ChatsListTile._buildMidSection
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
titleBuilder
→ ChatsWidgetBuilder<ChatBase>?
-
Builder used only if midSection is null
Replaces the default title
final
-
trailing
→ ChatsWidgetBuilder<ChatBase>?
-
Build a custom trailing Widget, otherwise empty.
final
-
unreadBubbleBuilder
→ ChatsWidgetBuilder<ChatBase>?
-
Builder used only if midSection is null
Replaces the default unread bubble Widget
The widget is a child of Stack, place above the group avatar
final
-
wrapper
→ Widget Function(BuildContext context, int index, T item, Widget child)?
-
A top level wrapper for the whole tile, whose child should be
child
.
This is meant for you to be able to build your custom action manager, typically
InkWell or GestureDetector and/or Dismissible.
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