DocumentFragment.html constructor

DocumentFragment.html(
  1. String? html, {
  2. NodeValidator? validator,
  3. NodeTreeSanitizer? treeSanitizer,
})

Implementation

factory DocumentFragment.html(
  String? html, {
  NodeValidator? validator,
  NodeTreeSanitizer? treeSanitizer,
}) {
  return document.body!.createFragment(
    html,
    validator: validator,
    treeSanitizer: treeSanitizer,
  );
}