iipEventAttributesUpdated method

void iipEventAttributesUpdated(
  1. int resourceId,
  2. DC attributes
)

Implementation

void iipEventAttributesUpdated(int resourceId, DC attributes) {
  fetch(resourceId)
    ..then((resource) {
      if (resource != null) {
        var attrs = attributes.getStringArray(0, attributes.length);

        getAttributes(resource, attrs).then((s) {
          resource.instance?.setAttributes(s);
        });
      }
    });
}