ChatController constructor

ChatController({
  1. required List<Message> initialMessageList,
  2. required ScrollController scrollController,
  3. required List<ChatUser> otherUsers,
  4. required ChatUser currentUser,
})

Implementation

ChatController({
  required this.initialMessageList,
  required this.scrollController,
  required List<ChatUser> otherUsers,
  required this.currentUser,
}) : _otherUsers = otherUsers.toMap<String, ChatUser>(
        getKey: (user) => user.id,
      );