reassemble method

  1. @override
void reassemble()
override

Updates or replaces this ReassemblableNode's children.

Implementation

@override
void reassemble() {
  if (childWidget.matches(childNode.widget)) {
    childNode.widget = childWidget;
  } else {
    childNode.dispose();

    childNode = childWidget.createNode()
      ..parentNode = this
      ..initialize();
  }
}