buildDOM<T> method

T? buildDOM<T>({
  1. DOMGenerator<T>? generator,
  2. T? parent,
  3. DOMContext<T>? context,
})

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);
}