iipEventChildAdded method

void iipEventChildAdded(
  1. int resourceId,
  2. int childId
)

Implementation

void iipEventChildAdded(int resourceId, int childId) {
  fetch(resourceId).then((parent) {
    if (parent != null)
      fetch(childId).then((child) {
        if (child != null) parent.instance?.children.add(child);
      });
  });
}