ChatListController class base

Constructors

ChatListController({required List<ChatListItem> initialChatList, required ScrollController scrollController, bool disposeOtherResources = true, bool sortEnable = true, ChatSorter? chatSorter})

Properties

animatedListController → AutoAnimateSliverListController<ChatListItem>
Internal use only. Do not use explicitly.
no setter
chatList List<ChatListItem>
Provides list of all chats in the chat list.
no setter
chatListMap Map<String, ChatListItem>
Provides map of all chats in the chat list.
no setter
chatListStream Stream<List<ChatListItem>>
latefinal
hashCode int
The hash code for this object.
no setterinherited
isSearching bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController
Provides scroll controller for chat list.
final

Methods

addChat(ChatListItem chat) → void
Adds a chat to the chat list.
clearSearch() → void
Function to clear the search results and show the original chat list.
dispose() → void
Used to dispose ValueNotifiers and Streams.
loadMoreChats(List<ChatListItem> chatList) → void
Function for loading data while pagination.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeChat(String chatId) → void
Removes the chat with the given chatId from the chat list.
setSearchChats(List<ChatListItem> searchResults) → void
Adds the given chat search results to the stream after the current frame.
toString() String
A string representation of this object.
inherited
updateChat(String chatId, UpdateChatCallback newChat) → void
Updates the chat entry in _chatListMap for the given chatId using the provided newChat callback.

Operators

operator ==(Object other) bool
The equality operator.
inherited