W3cubDocs

/Dart 2

Node class

Inheritance
Implementers
Annotations
  • @Native("Node")

Properties

baseUriString
@JSName('baseURI'), final
childNodesList<Node>
@Creates('NodeList'), @Returns('NodeList'), final
A list of this node's children. [...]
firstChildNode
final
The first child of this node. [...]
isConnectedbool
final
lastChildNode
final
The last child of this node. [...]
nextNodeNode
@JSName('nextSibling'), final
The next sibling node. [...]
nodeNameString
final
The name of this node. [...]
nodesList<Node>
read / write
A modifiable list of this node's children.
nodeTypeint
final
The type of node. [...]
nodeValueString
final
The value of this node. [...]
ownerDocumentDocument
final
The document this node belongs to. [...]
parentElement
@JSName('parentElement'), final
The parent element of this node. [...]
parentNodeNode
final
The parent node of this node. [...]
previousNodeNode
@JSName('previousSibling'), final
The previous sibling node. [...]
textString
@JSName('textContent'), read / write
All text within this node and its descendents. [...]
hashCodeint
read-only, inherited
The hash code for this object. [...]
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.
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

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. [...]
getRootNode([Map options ]) → Node
hasChildNodes() → bool
Returns true if this node has any children. [...]
insertAllBefore(Iterable<Node> newNodes, Node refChild) → Node
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. [...]
remove() → void
Removes this node from the DOM.
replaceWith(Node otherNode) → Node
Replaces this node with another node.
toString() → String
Print out a String representation of this Node.
addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
dispatchEvent(Event event) → bool
inherited
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited

Operators

operator ==(dynamic 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.5.0/dart-html/Node-class.html