buildDOM<T> method
Builds a DOM using generator
.
Note that this instance is a virtual DOM and an implementation of DOMGenerator is responsible to actually generate a DOM tree.
Implementation
T? buildDOM<T>(
{DOMGenerator<T>? generator, T? parent, DOMContext<T>? context}) {
if (isCommented) return null;
generator ??= defaultDomGenerator as DOMGenerator<T>?;
return generator!.generate(this, parent: parent, context: context);
}