updateChildren method
Return a copy of this node with new children.
Subclasses should override this method. This method provides a general interface to perform structural updates for the green tree (node replacement, insertion, etc).
Please ensure children works in the same order as updateChildren, computeChildOptions, and buildWidget.
Implementation
@override
MultiscriptsNode updateChildren(List<EquationRowNode?> newChildren) =>
MultiscriptsNode(
alignPostscripts: alignPostscripts,
base: newChildren[0]!,
sub: newChildren[1],
sup: newChildren[2],
presub: newChildren[3],
presup: newChildren[4],
);