memberAdded property

void Function(Group, Part)? get memberAdded

Gets or sets the function that is called after a member Part has been added to this Group. It is typically used to modify the appearance of the group. The first argument will be this Group. The second argument will be a Part, typically a Node, but may be a simple Part or a Link.

If the value is a function, that function must not modify any membership relationships. The member Part has already been added -- trying to remove it or adding or removing another member or the Group itself may produce undefined behavior.

The default value is null -- no function is called.

Implementation

void Function(
  _i3.Group,
  _i3.Part,
)? get memberAdded => (
      _i3.Group p0,
      _i3.Part p1,
    ) =>
        _i4.callMethod(
          _i4.getProperty(
            this,
            'memberAdded',
          ),
          r'call',
          [
            this,
            p0,
            p1,
          ],
        );
set memberAdded (void value(Group, Part)?)

Implementation

set memberAdded(
    void Function(
      _i3.Group,
      _i3.Part,
    )? value) {
  _i4.setProperty(
    this,
    'memberAdded',
    value == null ? _i5.undefined : _i4.allowInterop(value),
  );
}