Node class

Inheritance
Implementers
Annotations
  • @Native("Node")

Properties

baseUriString?
@JSName('baseURI'), read-only
childNodesList<Node>
@Creates('NodeList'), @Returns('NodeList'), read-only
A list of this node's children. [...]
firstChildNode?
read-only
The first child of this node. [...]
hashCodeint
read-only, inherited
The hash code for this object. [...]
isConnectedbool?
read-only
lastChildNode?
read-only
The last child of this node. [...]
nextNodeNode?
@JSName('nextSibling'), read-only
The next sibling node. [...]
nodeNameString?
read-only
The name of this node. [...]
nodesList<Node>
read / write
A modifiable list of this node's children.
nodeTypeint
read-only
The type of node. [...]
nodeValueString?
read-only
The value of this node. [...]
onEvents
read-only, inherited
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
ownerDocumentDocument?
read-only
The document this node belongs to. [...]
parentElement?
@JSName('parentElement'), read-only
The parent element of this node. [...]
parentNodeNode?
read-only
The parent node of this node. [...]
previousNodeNode?
@JSName('previousSibling'), read-only
The previous sibling node. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.
textString?
@JSName('textContent'), read / write
All text within this node and its descendents. [...]

Methods

addEventListener(String type, EventListener? listener, [bool? useCapture]) → void
inherited
append(Node node) → Node
@JSName('appendChild')
Adds a node to the end of the child nodes list of this node. [...]
clone(bool? deep) → Node
@JSName('cloneNode')
Returns a copy of this node. [...]
contains(Node? other) → bool
Returns true if this node contains the specified node. [...]
dispatchEvent(Event event) → bool
inherited
getRootNode([Map? options]) → Node
hasChildNodes() → bool
Returns true if this node has any children. [...]
insertAllBefore(Iterable<Node> newNodes, Node refChild) → void
Inserts all of the nodes into this node directly before refChild. [...]
insertBefore(Node node, Node? child) → Node
Inserts all of the nodes into this node directly before refChild. [...]
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
remove() → void
Removes this node from the DOM.
removeEventListener(String type, EventListener? listener, [bool? useCapture]) → void
inherited
replaceWith(Node otherNode) → Node
Replaces this node with another node.
toString() → String
Print out a String representation of this Node.

Operators

operator ==(Object other) → bool
inherited
The equality operator. [...]

Constants

ATTRIBUTE_NODE → const int
2
CDATA_SECTION_NODE → const int
4
COMMENT_NODE → const int
8
DOCUMENT_FRAGMENT_NODE → const int
11
DOCUMENT_NODE → const int
9
DOCUMENT_TYPE_NODE → const int
10
ELEMENT_NODE → const int
1
ENTITY_NODE → const int
6
ENTITY_REFERENCE_NODE → const int
5
NOTATION_NODE → const int
12
PROCESSING_INSTRUCTION_NODE → const int
7
TEXT_NODE → const int
3

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-html/Node-class.html