watchMessages abstract method
Paginated stream of messages for a chat.
chatId: ID of the chatlimit: Maximum number of messages to returnstartAfterMessageId: ID of the message to start after (for pagination)
Returns a stream that emits lists of messages ordered from oldest to newest.
Implementation
Stream<List<ChatMessage>> watchMessages({
required String chatId,
int limit = 50,
String? startAfterMessageId,
});