canUngroupSelection method

bool canUngroupSelection([
  1. Group? group
])

This predicate controls whether or not the user can invoke the #ungroupSelection command.

This method may be overridden, but you should consider calling this base method in order to get all of its functionality. This method must not have any side-effects. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {Group=} group if supplied, ignore the selection and consider ungrouping this particular Group. @return {boolean} This returns true: if the diagram is not Diagram#isReadOnly, if Diagram#allowDelete is true, if Diagram#allowUngroup is true, if Diagram#model is a GraphLinksModel, and if there are any selected Groups that are Group#ungroupable. @see #ungroupSelection

Implementation

_i2.bool canUngroupSelection([_i3.Group? group]) => _i4.callMethod(
      this,
      'canUngroupSelection',
      [group ?? _i5.undefined],
    );