openForMembers method

Widget openForMembers(
  1. AppModel app,
  2. String thisMemberId,
  3. List<String> otherMemberIds,
  4. MembersType membersType,
  5. List<String> blockedMembers,
)

Implementation

Widget openForMembers(
    AppModel app,
    String thisMemberId,
    List<String> otherMemberIds,
    MembersType membersType,
    List<String> blockedMembers) {
  return BlocProvider<ChatBloc>(
      create: (context) => ChatBloc(
            thisMemberId: thisMemberId,
            appId: app.documentID,
            blockedMembers: blockedMembers,
          )..add(OpenChatWithMembersEvent(otherMemberIds)),
      child: ChatWidget(
          blockedMembers: blockedMembers,
          app: app,
          memberId: thisMemberId,
          canAddMember: false,
          membersType: membersType));
}