chat/chat_controller library

Classes

ChatController
Holds the messages of a Chat and controls its scroll position.
MessageDispatchResult
Outcome of sending a message with ChatController.dispatchMessage.

Typedefs

AdditionalGroupCondition = bool Function(MessageGroup group, Message message)
Extra condition for adding message to an existing group.
CustomSortCallback = int Function(Message a, Message b)
Orders two messages that have the same timestamp.
MessageDispatchCallback = Future<Message?> Function(Message)
Sends Message to your backend.

Exceptions / Errors

MessageBlockedException
Thrown by a dispatch callback when the server refuses to send the message.