onContactInvited method Null safety

void onContactInvited(
  1. String userName,
  2. String? reason
)

Occurs when a user receives a friend request.

Param userName The user who initiated the friend request.

Param reason The invitation message.

Implementation

void onContactInvited(String userName, String? reason);