appendHtml 方法
- String text, {
- NodeValidator? validator,
- NodeTreeSanitizer? treeSanitizer,
将指定的文本解析为 HTML,并将结果节点添加到此元素的最后一个子节点之后。
实现
void appendHtml(String text,
{NodeValidator? validator, NodeTreeSanitizer? treeSanitizer}) {
this.insertAdjacentHtml('beforeend', text,
validator: validator, treeSanitizer: treeSanitizer);
}