rebuild method

void rebuild()

Rebuilds the child component list from the current state.

This clears the cached ComponentInstances so they will be recreated on the next access.

Implementation

void rebuild() {
  _children = state.build();
  _childrenInstances = null;
}