appendHtml 方法

void appendHtml(
  1. String text,
  2. {NodeValidator? validator,
  3. NodeTreeSanitizer? treeSanitizer}
)

将指定的文本解析为 HTML,并将生成的节点添加到此元素的最后一个子节点之后。

实现

void appendHtml(String text,
    {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer}) {
  this.insertAdjacentHtml('beforeend', text,
      validator: validator, treeSanitizer: treeSanitizer);
}