onUserReceivedInvitation method

void onUserReceivedInvitation(
  1. GroupChannel channel,
  2. List<User> invitees,
  3. User? inviter
)

A callback for when a new member has been invited to GroupChannel. If the member accepts the invitation (refer to GroupChannelOperation.acceptInvitation), onUserJoined will be called. Or, the member can also decline the invitation (refer to GroupChannelOperation.declineInvitation) to cause onUserDeclinedInvitation.

Implementation

void onUserReceivedInvitation(
    GroupChannel channel, List<User> invitees, User? inviter) {}