ParentNode constructor

ParentNode({
  1. num? childElementCount,
  2. HTMLCollection? children,
  3. Element? firstElementChild,
  4. Element? lastElementChild,
  5. void append([
    1. Iterable?
    ])?,
  6. void prepend([
    1. Iterable?
    ])?,
  7. void replaceChildren([
    1. Iterable?
    ])?,
  8. String? baseURI,
  9. NodeListOf<ChildNode>? childNodes,
  10. ChildNode? firstChild,
  11. bool? isConnected,
  12. ChildNode? lastChild,
  13. ChildNode? nextSibling,
  14. String? nodeName,
  15. num? nodeType,
  16. String? nodeValue,
  17. Document? ownerDocument,
  18. HTMLElement? parentElement,
  19. ParentNode? parentNode,
  20. ChildNode? previousSibling,
  21. String? textContent,
  22. num? elementNode,
  23. num? attributeNode,
  24. num? textNode,
  25. num? cdataSectionNode,
  26. num? entityReferenceNode,
  27. num? entityNode,
  28. num? processingInstructionNode,
  29. num? commentNode,
  30. num? documentNode,
  31. num? documentTypeNode,
  32. num? documentFragmentNode,
  33. num? notationNode,
  34. num? documentPositionDisconnected,
  35. num? documentPositionPreceding,
  36. num? documentPositionFollowing,
  37. num? documentPositionContains,
  38. num? documentPositionContainedBy,
  39. num? documentPositionImplementationSpecific,
  40. T appendChild<T extends Node>(
    1. T
    )?,
  41. Node cloneNode([
    1. bool?
    ])?,
  42. num compareDocumentPosition(
    1. Node
    )?,
  43. bool contains([
    1. Node?
    ])?,
  44. Node getRootNode([
    1. GetRootNodeOptions?
    ])?,
  45. bool hasChildNodes()?,
  46. T insertBefore<T extends Node>(
    1. T, [
    2. Node?
    ])?,
  47. bool isDefaultNamespace([
    1. String?
    ])?,
  48. bool isEqualNode([
    1. Node?
    ])?,
  49. bool isSameNode([
    1. Node?
    ])?,
  50. String? lookupNamespaceURI([
    1. String?
    ])?,
  51. String? lookupPrefix([
    1. String?
    ])?,
  52. void normalize()?,
  53. T removeChild<T extends Node>(
    1. T
    )?,
  54. T replaceChild<T extends Node>(
    1. Node,
    2. T
    )?,
})

Implementation

factory ParentNode({
  _i2.num? childElementCount,
  _i3.HTMLCollection? children,
  _i3.Element? firstElementChild,
  _i3.Element? lastElementChild,
  void Function([_i2.Iterable<_i2.dynamic>?])? append,
  void Function([_i2.Iterable<_i2.dynamic>?])? prepend,
  void Function([_i2.Iterable<_i2.dynamic>?])? replaceChildren,
  _i2.String? baseURI,
  _i3.NodeListOf<_i3.ChildNode>? childNodes,
  _i3.ChildNode? firstChild,
  _i2.bool? isConnected,
  _i3.ChildNode? lastChild,
  _i3.ChildNode? nextSibling,
  _i2.String? nodeName,
  _i2.num? nodeType,
  _i2.String? nodeValue,
  _i3.Document? ownerDocument,
  _i3.HTMLElement? parentElement,
  _i3.ParentNode? parentNode,
  _i3.ChildNode? previousSibling,
  _i2.String? textContent,
  _i2.num? elementNode,
  _i2.num? attributeNode,
  _i2.num? textNode,
  _i2.num? cdataSectionNode,
  _i2.num? entityReferenceNode,
  _i2.num? entityNode,
  _i2.num? processingInstructionNode,
  _i2.num? commentNode,
  _i2.num? documentNode,
  _i2.num? documentTypeNode,
  _i2.num? documentFragmentNode,
  _i2.num? notationNode,
  _i2.num? documentPositionDisconnected,
  _i2.num? documentPositionPreceding,
  _i2.num? documentPositionFollowing,
  _i2.num? documentPositionContains,
  _i2.num? documentPositionContainedBy,
  _i2.num? documentPositionImplementationSpecific,
  T Function<T extends _i3.Node>(T)? appendChild,
  _i3.Node Function([_i2.bool?])? cloneNode,
  _i2.num Function(_i3.Node)? compareDocumentPosition,
  _i2.bool Function([_i3.Node?])? contains,
  _i3.Node Function([_i3.GetRootNodeOptions?])? getRootNode,
  _i2.bool Function()? hasChildNodes,
  T Function<T extends _i3.Node>(
    T, [
    _i3.Node?,
  ])? insertBefore,
  _i2.bool Function([_i2.String?])? isDefaultNamespace,
  _i2.bool Function([_i3.Node?])? isEqualNode,
  _i2.bool Function([_i3.Node?])? isSameNode,
  _i2.String? Function([_i2.String?])? lookupNamespaceURI,
  _i2.String? Function([_i2.String?])? lookupPrefix,
  void Function()? normalize,
  T Function<T extends _i3.Node>(T)? removeChild,
  T Function<T extends _i3.Node>(
    _i3.Node,
    T,
  )? replaceChild,
}) =>
    ParentNode._(
      childElementCount: childElementCount,
      children: children ?? _i6.undefined,
      firstElementChild: firstElementChild ?? _i6.undefined,
      lastElementChild: lastElementChild ?? _i6.undefined,
      append: append == null
          ? null
          : _i4.allowInterop(([
              a0,
              a1,
              a2,
              a3,
              a4,
              a5,
              a6,
              a7,
              a8,
              a9,
            ]) =>
              append([
                a0,
                a1,
                a2,
                a3,
                a4,
                a5,
                a6,
                a7,
                a8,
                a9,
              ])),
      prepend: prepend == null
          ? null
          : _i4.allowInterop(([
              a0,
              a1,
              a2,
              a3,
              a4,
              a5,
              a6,
              a7,
              a8,
              a9,
            ]) =>
              prepend([
                a0,
                a1,
                a2,
                a3,
                a4,
                a5,
                a6,
                a7,
                a8,
                a9,
              ])),
      replaceChildren: replaceChildren == null
          ? null
          : _i4.allowInterop(([
              a0,
              a1,
              a2,
              a3,
              a4,
              a5,
              a6,
              a7,
              a8,
              a9,
            ]) =>
              replaceChildren([
                a0,
                a1,
                a2,
                a3,
                a4,
                a5,
                a6,
                a7,
                a8,
                a9,
              ])),
      baseURI: baseURI,
      childNodes: childNodes ?? _i6.undefined,
      firstChild: firstChild ?? _i6.undefined,
      isConnected: isConnected,
      lastChild: lastChild ?? _i6.undefined,
      nextSibling: nextSibling ?? _i6.undefined,
      nodeName: nodeName,
      nodeType: nodeType,
      nodeValue: nodeValue ?? _i6.undefined,
      ownerDocument: ownerDocument ?? _i6.undefined,
      parentElement: parentElement ?? _i6.undefined,
      parentNode: parentNode ?? _i6.undefined,
      previousSibling: previousSibling ?? _i6.undefined,
      textContent: textContent ?? _i6.undefined,
      elementNode: elementNode,
      attributeNode: attributeNode,
      textNode: textNode,
      cdataSectionNode: cdataSectionNode,
      entityReferenceNode: entityReferenceNode,
      entityNode: entityNode,
      processingInstructionNode: processingInstructionNode,
      commentNode: commentNode,
      documentNode: documentNode,
      documentTypeNode: documentTypeNode,
      documentFragmentNode: documentFragmentNode,
      notationNode: notationNode,
      documentPositionDisconnected: documentPositionDisconnected,
      documentPositionPreceding: documentPositionPreceding,
      documentPositionFollowing: documentPositionFollowing,
      documentPositionContains: documentPositionContains,
      documentPositionContainedBy: documentPositionContainedBy,
      documentPositionImplementationSpecific:
          documentPositionImplementationSpecific,
      appendChild: appendChild == null ? null : _i4.allowInterop(appendChild),
      cloneNode: cloneNode == null ? null : _i4.allowInterop(cloneNode),
      compareDocumentPosition: compareDocumentPosition == null
          ? null
          : _i4.allowInterop(compareDocumentPosition),
      contains: contains == null ? null : _i4.allowInterop(contains),
      getRootNode: getRootNode == null ? null : _i4.allowInterop(getRootNode),
      hasChildNodes:
          hasChildNodes == null ? null : _i4.allowInterop(hasChildNodes),
      insertBefore:
          insertBefore == null ? null : _i4.allowInterop(insertBefore),
      isDefaultNamespace: isDefaultNamespace == null
          ? null
          : _i4.allowInterop(isDefaultNamespace),
      isEqualNode: isEqualNode == null ? null : _i4.allowInterop(isEqualNode),
      isSameNode: isSameNode == null ? null : _i4.allowInterop(isSameNode),
      lookupNamespaceURI: lookupNamespaceURI == null
          ? null
          : _i4.allowInterop(
              (p0) => () => lookupNamespaceURI(p0) ?? _i6.undefined),
      lookupPrefix: lookupPrefix == null
          ? null
          : _i4.allowInterop((p0) => () => lookupPrefix(p0) ?? _i6.undefined),
      normalize: normalize == null ? null : _i4.allowInterop(normalize),
      removeChild: removeChild == null ? null : _i4.allowInterop(removeChild),
      replaceChild:
          replaceChild == null ? null : _i4.allowInterop(replaceChild),
    );