afterCopyFunction property

void Function(Map<Object, Object>, Model, Model)? get afterCopyFunction

(undocumented) This function (if not null) is called towards the end of Diagram#copyParts in order to support custom data copying operations that depend on references between the parts.

The first argument to the function is a Map mapping original data objects to copied data objects. The second argument to the function is this Model, the destination model for the copied parts. The third argument to the function is the source Model, of the original data objects.

Implementation

void Function(
  _i3.Map<_i2.Object, _i2.Object>,
  _i3.Model,
  _i3.Model,
)? get afterCopyFunction => (
      _i3.Map<_i2.Object, _i2.Object> p0,
      _i3.Model p1,
      _i3.Model p2,
    ) =>
        _i4.callMethod(
          _i4.getProperty(
            this,
            'afterCopyFunction',
          ),
          r'call',
          [
            this,
            p0,
            p1,
            p2,
          ],
        );
set afterCopyFunction (void value(Map<Object, Object>, Model, Model)?)

Implementation

set afterCopyFunction(
    void Function(
      _i3.Map<_i2.Object, _i2.Object>,
      _i3.Model,
      _i3.Model,
    )? value) {
  _i4.setProperty(
    this,
    'afterCopyFunction',
    value == null ? _i5.undefined : _i4.allowInterop(value),
  );
}