isValidMember method

bool isValidMember(
  1. Group group,
  2. Part part
)

This predicate is called to determine whether a Node may be added as a member of a Group. This always checks to make sure no group might become a member of itself, either directly or indirectly. If the Group has a Group#memberValidation predicate and if it returns false, this method returns false. If this CommandHandler has a #memberValidation predicate and if it returns false, this method returns false. Otherwise this will return true.

For a more general discussion of validation, see Introduction to Validation.

This method may be overridden, but you should consider calling this base method in order to get all of its functionality. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {Group} group this may be null if the node is being added as a top-level node. @param {Part} part a Part, usually a Node, possibly another Group, but not a Link or an Adornment. @return {boolean} true if OK to add the node to the group.

Implementation

_i2.bool isValidMember(
  _i3.Group group,
  _i3.Part part,
) =>
    _i4.callMethod(
      this,
      'isValidMember',
      [
        group,
        part,
      ],
    );