ChatController class

Implemented types

Constructors

ChatController({required List<MessageModel> initialMessageList, required ScrollController scrollController, required int timePellet, MessageWidgetBuilder? messageWidgetBuilder})

Properties

hashCode int
The hash code for this object.
no setterinherited
initialMessageList List<MessageModel>
Represents initial message list in chat which can be add by user.
final
messageStreamController StreamController<List<MessageModel>>
Represents message stream of chat
getter/setter pair
messageWidgetBuilder MessageWidgetBuilder?
Provide MessageWidgetBuilder to customize your bubble style.
final
pelletShow List<int>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController
final
timePellet int
creation time group; unit second
final

Methods

addMessage(MessageModel message) → void
Used to add message in message list.
override
deleteMessage(MessageModel message) → void
Delete message.
override
dispose() → void
Used to dispose stream.
inflateMessage(MessageModel message) → dynamic
set showCreatedTime flag
loadMoreData(List<MessageModel> messageList) → void
Function for loading data while pagination.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scrollToLastMessage() → void
Function to scroll to last messages in chat view
toString() String
A string representation of this object.
inherited
widgetReady() → void
ChatList is init ok

Operators

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