isMemberAllowToInvite property Null safety

bool isMemberAllowToInvite

Checks whether a group member is allowed to invite other users to join the group.

Note To get the correct value, ensure that you call {@link EMGroupManager#fetchGroupInfoFromServer(String)} before calling this method.

Return

  • true: Yes;
  • false: No. Only the group owner or admin can invite others to join the group.

Implementation

bool get isMemberAllowToInvite {
  if (_options == null) {
    return true;
  }
  if (_options?.style == EMGroupStyle.PrivateMemberCanInvite) {
    return true;
  }

  return false;
}