addChangedListener method

Diagram addChangedListener(
  1. void listener(
    1. ChangedEvent
    )
)

Register an event handler that is called when there is a ChangedEvent because this Diagram or one of its Parts has changed, but not because the Model or any model data has changed.

It is unusual to listen for Diagram ChangedEvents -- it is far more common to listen for specific DiagramEvents by calling #addDiagramListener, or to listen for Model ChangedEvents (i.e. changes to the model) by calling #addModelChangedListener.

Do not add or remove Changed listeners during the execution of a Changed listener. @param {function(ChangedEvent)} listener a function that takes a ChangedEvent as its argument. @see #removeChangedListener @return {Diagram} this Diagram

Implementation

_i3.Diagram addChangedListener(void Function(_i3.ChangedEvent) listener) =>
    _i4.callMethod(
      this,
      'addChangedListener',
      [_i4.allowInterop(listener)],
    );