openForMember method

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

Implementation

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