raiseDataChanged method

void raiseDataChanged(
  1. Object data,
  2. Object propertyname, [
  3. dynamic oldval,
  4. dynamic newval,
  5. dynamic oldparam,
  6. dynamic newparam,
])

Call this method to notify about a data property having changed value. This constructs a ChangedEvent and calls all Changed listeners.

You should call this method only if the property value actually changed. This method is called by #setDataProperty. @param {Object} data the data object whose property changed value. @param {string|function(ObjectData,?=):?} propertyname the name of the property, or a function that takes an Object and returns the property value. @param {} oldval the previous or old value for the property. @param {} newval the next or new value for the property. @param {=} oldparam an optional value additionally describing the old value. @param {=} newparam an optional value additionally describing the new value.

Implementation

void raiseDataChanged(
  _i2.Object data,
  _i2.Object propertyname, [
  _i2.dynamic oldval,
  _i2.dynamic newval,
  _i2.dynamic oldparam,
  _i2.dynamic newparam,
]) {
  _i4.callMethod(
    this,
    'raiseDataChanged',
    [
      data,
      propertyname,
      oldval,
      newval,
      oldparam,
      newparam,
    ],
  );
}