addMembers method
Add the Parts in the given collection as members of this Group for those Parts for which CommandHandler#isValidMember returns true. If the check argument to this method is not supplied or false, this will set Part#containingGroup on each part unconditionally, not calling CommandHandler#isValidMember.
The CommandHandler predicate will use CommandHandler#memberValidation and #memberValidation, if either or both are defined.
At this time there is no "removeMembers" method. If you want to make a collection of Parts to be top-level parts, not members of any Group but still in the Diagram, call CommandHandler#addTopLevelParts. If you want to remove a collection of Parts not only from a Group but from the whole Diagram, call Diagram#removeParts. @expose @param {Iterable.
Implementation
_i2.bool addMembers(
_i3.Iterable<_i3.Part> coll, [
_i2.bool? check,
]) =>
_i4.callMethod(
this,
'addMembers',
[
coll,
check ?? _i5.undefined,
],
);