raiseChangedEvent method

void raiseChangedEvent(
  1. EnumValue change,
  2. Object propertyname,
  3. Object obj, [
  4. dynamic oldval,
  5. dynamic newval,
  6. dynamic oldparam,
  7. dynamic newparam,
])

Call this method to notify that the model or its objects have changed. This constructs a ChangedEvent and calls all Changed listeners. @param {EnumValue} change specifies the general nature of the change; typically the value is ChangedEvent.Property. @param {string|function(ObjectData,?=):?} propertyname names the property that was modified, or a function that takes an Object and returns the property value. @param {Object} obj the object that was modified, typically a GraphObject, Diagram, or a Model. @param {} oldval the previous or older value. @param {} newval the next or newer value. @param {=} oldparam an optional value that helps describe the older value. @param {=} newparam an optional value that helps describe the newer value.

Implementation

void raiseChangedEvent(
  _i3.EnumValue change,
  _i2.Object propertyname,
  _i2.Object obj, [
  _i2.dynamic oldval,
  _i2.dynamic newval,
  _i2.dynamic oldparam,
  _i2.dynamic newparam,
]) {
  _i4.callMethod(
    this,
    'raiseChangedEvent',
    [
      change,
      propertyname,
      obj,
      oldval,
      newval,
      oldparam,
      newparam,
    ],
  );
}