OnUserLeaveType typedef
OnUserLeaveType =
void Function(String uid, UserOfflineReason reason)
uid
: ID of the remote user who left the room or switched to invisible.
reason
: Reasons why remote users leave.
Implementation
typedef OnUserLeaveType = void Function(String uid, UserOfflineReason reason);