ChatController constructor
ChatController({
- required ChatService service,
- required String chatId,
- required String currentUserId,
Creates a new ChatController.
Automatically initializes and starts listening to messages, unread count, and blocked users.
All parameters are required:
service: The ChatService implementation to usechatId: ID of the chatcurrentUserId: ID of the current user
Implementation
ChatController({
required this.service,
required this.chatId,
required this.currentUserId,
}) {
_initialize();
}