MockMembersApi class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
ban (String roomId , String userId , {String ? reason })
→ Future <ChatResult <void > >
Bans a user from a room, optionally with a reason.
override
invite (String roomId , {required List <String > userIds , RoomUserMode mode = RoomUserMode.invite , String ? token })
→ Future <ChatResult <InviteResult > >
Invites users to a room. The mode controls the membership flow:
invite sends an invitation the user must accept;
inviteAndJoin admin-adds them directly (skip accept step);
acceptInvitation / declineInvitation resolve a pending invite
for the current user (in those modes userIds must be the
current user's id).
override
joinWithToken (String roomId , {required String token })
→ Future <ChatResult <InviteResult > >
Joins the current user to a public room using an invitation token.
override
leave (String roomId )
→ Future <ChatResult <void > >
Current user leaves a room.
override
list (String roomId , {List <RoomMemberExpand > expand = const [] , CachePolicy ? cachePolicy })
→ Future <ChatResult <ChatPaginatedResponse <RoomUser > > >
Lists members of a room.
override
muteUser (String roomId , String userId )
→ Future <ChatResult <void > >
Mutes a specific user within a room.
override
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove (String roomId , String userId )
→ Future <ChatResult <void > >
Removes a user from a room.
override
toString ()
→ String
A string representation of this object.
inherited
unban (String roomId , String userId )
→ Future <ChatResult <void > >
Removes a ban from a user.
override
unmuteUser (String roomId , String userId )
→ Future <ChatResult <void > >
Unmutes a specific user within a room.
override
updateRole (String roomId , String userId , RoomRole role )
→ Future <ChatResult <void > >
Changes a member's role (owner, admin, member).
override