ChatroomController constructor
ChatroomController({
- required String roomId,
- required String ownerId,
- ChatroomEventListener? listener,
- Future<
List< ? giftControllers,ChatroomGiftPageController> ?> - List<
ChatroomParticipantPageController> ? participantControllers,
Implementation
ChatroomController({
required this.roomId,
required this.ownerId,
this.listener,
this.giftControllers,
List<ChatroomParticipantPageController>? participantControllers,
}) {
List<ChatroomParticipantPageController> list = [DefaultMembersController()];
if (ownerId == Client.getInstance.currentUserId) {
list.add(DefaultMutesController());
}
this.participantControllers = participantControllers ?? list;
ChatroomUIKitClient.instance.roomService.bindResponse(this);
ChatroomUIKitClient.instance.bindRoomEventResponse(this);
}