Inheritance
Implemented by
Annotations
  • @DomName('Node')
  • @Native("Node")

Properties

baseUri String
@DocsEditable(), @DomName('Node.baseURI'), @JSName('baseURI'), final
childNodes List<Node>
A list of this node's children. [...]
@Creates('NodeList'), @DocsEditable(), @DomName('Node.childNodes'), @Returns('NodeList'), final
firstChild Node
The first child of this node. [...]
@DocsEditable(), @DomName('Node.firstChild'), final
lastChild Node
The last child of this node. [...]
@DocsEditable(), @DomName('Node.lastChild'), final
nextNode Node
The next sibling node. [...]
@DocsEditable(), @DomName('Node.nextSibling'), @JSName('nextSibling'), final
nodeName String
The name of this node. [...]
@DocsEditable(), @DomName('Node.nodeName'), final
nodes Iterable<Node> value
A modifiable list of this node's children.
read / write
nodeType int
The type of node. [...]
@DocsEditable(), @DomName('Node.nodeType'), final
nodeValue String
The value of this node. [...]
@DocsEditable(), @DomName('Node.nodeValue'), final
ownerDocument Document
The document this node belongs to. [...]
@DocsEditable(), @DomName('Node.ownerDocument'), final
parent Element
The parent element of this node. [...]
@DocsEditable(), @DomName('Node.parentElement'), @JSName('parentElement'), final
parentNode Node
The parent node of this node. [...]
@DocsEditable(), @DomName('Node.parentNode'), final
previousNode Node
The previous sibling node. [...]
@DocsEditable(), @DomName('Node.previousSibling'), @JSName('previousSibling'), final
text String
All text within this node and its descendents. [...]
@DocsEditable(), @DomName('Node.textContent'), @JSName('textContent'), read / write
treeRoot Node
@DocsEditable(), @DomName('Node.treeRoot'), @Experimental(), final
hashCode int
read-only, inherited
on Events
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
read-only, inherited
runtimeType Type
read-only, inherited

Methods

append(Node node) Node
Adds a node to the end of the child nodes list of this node. [...]
@DocsEditable(), @DomName('Node.appendChild'), @JSName('appendChild')
clone(bool deep) Node
Returns a copy of this node. [...]
@DocsEditable(), @DomName('Node.cloneNode'), @JSName('cloneNode')
contains(Node other) bool
Returns true if this node contains the specified node. [...]
@DocsEditable(), @DomName('Node.contains')
hasChildNodes() bool
Returns true if this node has any children. [...]
@DocsEditable(), @DomName('Node.hasChildNodes')
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. [...]
@DocsEditable(), @DomName('Node.insertBefore')
remove() → void
Removes this node from the DOM.
@DomName('Node.removeChild')
replaceWith(Node otherNode) Node
Replaces this node with another node.
@DomName('Node.replaceChild')
toString() String
Print out a String representation of this Node.
addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
dispatchEvent(Event event) bool
@DocsEditable(), @DomName('EventTarget.dispatchEvent'), inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited

Operators

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

Constants

ATTRIBUTE_NODE int
@DocsEditable(), @DomName('Node.ATTRIBUTE_NODE')
2
CDATA_SECTION_NODE int
@DocsEditable(), @DomName('Node.CDATA_SECTION_NODE')
4
COMMENT_NODE int
@DocsEditable(), @DomName('Node.COMMENT_NODE')
8
DOCUMENT_FRAGMENT_NODE int
@DocsEditable(), @DomName('Node.DOCUMENT_FRAGMENT_NODE')
11
DOCUMENT_NODE int
@DocsEditable(), @DomName('Node.DOCUMENT_NODE')
9
DOCUMENT_TYPE_NODE int
@DocsEditable(), @DomName('Node.DOCUMENT_TYPE_NODE')
10
ELEMENT_NODE int
@DocsEditable(), @DomName('Node.ELEMENT_NODE')
1
ENTITY_NODE int
@DocsEditable(), @DomName('Node.ENTITY_NODE')
6
ENTITY_REFERENCE_NODE int
@DocsEditable(), @DomName('Node.ENTITY_REFERENCE_NODE')
5
NOTATION_NODE int
@DocsEditable(), @DomName('Node.NOTATION_NODE')
12
PROCESSING_INSTRUCTION_NODE int
@DocsEditable(), @DomName('Node.PROCESSING_INSTRUCTION_NODE')
7
TEXT_NODE int
@DocsEditable(), @DomName('Node.TEXT_NODE')
3