ChildNode constructor
ChildNode({
- void after([])?,
- void before([])?,
- void remove()?,
- void replaceWith([])?,
- String? baseURI,
- NodeListOf<
ChildNode> ? childNodes, - ChildNode? firstChild,
- bool? isConnected,
- ChildNode? lastChild,
- ChildNode? nextSibling,
- String? nodeName,
- num? nodeType,
- String? nodeValue,
- Document? ownerDocument,
- HTMLElement? parentElement,
- ParentNode? parentNode,
- ChildNode? previousSibling,
- String? textContent,
- num? elementNode,
- num? attributeNode,
- num? textNode,
- num? cdataSectionNode,
- num? entityReferenceNode,
- num? entityNode,
- num? processingInstructionNode,
- num? commentNode,
- num? documentNode,
- num? documentTypeNode,
- num? documentFragmentNode,
- num? notationNode,
- num? documentPositionDisconnected,
- num? documentPositionPreceding,
- num? documentPositionFollowing,
- num? documentPositionContains,
- num? documentPositionContainedBy,
- num? documentPositionImplementationSpecific,
- T appendChild<
T extends Node>( - T
- Node cloneNode([
- bool?
- num compareDocumentPosition()?,
- bool contains([
- Node?
- Node getRootNode([])?,
- bool hasChildNodes()?,
- T insertBefore<
T extends Node>( - T, [
- Node?
- bool isDefaultNamespace([])?,
- bool isEqualNode([
- Node?
- bool isSameNode([
- Node?
- String? lookupNamespaceURI([])?,
- String? lookupPrefix([])?,
- void normalize()?,
- T removeChild<
T extends Node>( - T
- T replaceChild<
T extends Node>( - Node,
- 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),
);