Node class
- Inheritance
- Object
- EventTarget
- Node
- Implementers
- Annotations
- @Native("Node")
Properties
- baseUri → String? @JSName('baseURI'), read-only
- childNodes → List<
Node> @Creates('NodeList'), @Returns('NodeList'), read-only - A list of this node's children. [...]
- firstChild → Node? read-only
- The first child of this node. [...]
- hashCode → int read-only, inherited
- The hash code for this object. [...]
- isConnected → bool? read-only
- lastChild → Node? read-only
- The last child of this node. [...]
- nextNode → Node? @JSName('nextSibling'), read-only
- The next sibling node. [...]
- nodeName → String? read-only
- The name of this node. [...]
- nodes ↔ List<
Node> read / write - A modifiable list of this node's children.
- nodeType → int read-only
- The type of node. [...]
- nodeValue → String? read-only
- The value of this node. [...]
- on → Events 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.
- ownerDocument → Document? read-only
- The document this node belongs to. [...]
- parent → Element? @JSName('parentElement'), read-only
- The parent element of this node. [...]
- parentNode → Node? read-only
- The parent node of this node. [...]
- previousNode → Node? @JSName('previousSibling'), read-only
- The previous sibling node. [...]
- runtimeType → Type read-only, inherited
- A representation of the runtime type of the object.
- text ↔ String? @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