reAddChildren method

Future<void> reAddChildren()

The children are added again to the component set so that prepare, onLoad and onMount runs again. Used when a parent is changed further up the tree.

Implementation

Future<void> reAddChildren() async {
  await Future.wait(children.map(add));
  await Future.wait(children.addLater.map(add));
}