renderNew method
Renders the newly created virtual node.
Implementation
@override
void renderNew(VNode? parent) {
renderSafely(() {
this.parent = parent;
final node1 = document.createElement(tagName);
for (final key in attributes.keys) {
final value = attributes[key]!;
if (value != false) {
node1.setAttribute(key, value);
}
}
for (final key in listeners.keys) {
final listener = listeners[key];
node1.addEventListener(key, listener);
}
_setInnerHtml(node1, html);
node = node1;
});
}