ChildNode constructor

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

Implementation

factory ChildNode({
  void Function([_i2.Iterable<_i2.dynamic>?])? after,
  void Function([_i2.Iterable<_i2.dynamic>?])? before,
  void Function()? remove,
  void Function([_i2.Iterable<_i2.dynamic>?])? replaceWith,
  _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,
}) =>
    ChildNode._(
      after: after == null
          ? null
          : _i4.allowInterop(([
              a0,
              a1,
              a2,
              a3,
              a4,
              a5,
              a6,
              a7,
              a8,
              a9,
            ]) =>
              after([
                a0,
                a1,
                a2,
                a3,
                a4,
                a5,
                a6,
                a7,
                a8,
                a9,
              ])),
      before: before == null
          ? null
          : _i4.allowInterop(([
              a0,
              a1,
              a2,
              a3,
              a4,
              a5,
              a6,
              a7,
              a8,
              a9,
            ]) =>
              before([
                a0,
                a1,
                a2,
                a3,
                a4,
                a5,
                a6,
                a7,
                a8,
                a9,
              ])),
      remove: remove == null ? null : _i4.allowInterop(remove),
      replaceWith: replaceWith == null
          ? null
          : _i4.allowInterop(([
              a0,
              a1,
              a2,
              a3,
              a4,
              a5,
              a6,
              a7,
              a8,
              a9,
            ]) =>
              replaceWith([
                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),
    );