patch function
Updates the provided Node with a function containing zero or more calls to elementOpen, text and elementClose. The provided callback function may call other such functions. The patch function may be called with a new Node while a call to patch is already executing.
This function patches the node. Typically, this
will be an HTMLElement or DocumentFragment.
description is the callback to build the DOM tree
underneath node.
Implementation
void patch(Node node, void Function(Object?) description, [Object? data]) {
_incDom.callMethod('patch', <Object?>[node, description, data]);
}