Node class
- Inheritance
-
- Object
- EventTarget
- Node
- Implementers
- Annotations
-
- @Native("Node")
Properties
- baseUri â String?
-
no setter
-
childNodes
â List<
Node> -
A list of this node's children.
no setter
- firstChild â Node?
-
The first child of this node.
no setter
- hashCode â int
-
The hash code for this object.
no setterinherited
- isConnected â bool?
-
no setter
- lastChild â Node?
-
The last child of this node.
no setter
- nextNode â Node?
-
The next sibling node.
no setter
- nodeName â String?
-
The name of this node.
no setter
-
nodes
â List<
Node> -
A modifiable list of this node's children.
getter/setter pair
- nodeType â int
-
The type of node.
no setter
- nodeValue â String?
-
The value of this node.
no setter
- on â Events
-
This is an ease-of-use accessor for event streams which should only be
used when an explicit accessor is not available.
no setterinherited
- ownerDocument â Document?
-
The document this node belongs to.
no setter
- parent â Element?
-
The parent element of this node.
no setter
- parentNode â Node?
-
The parent node of this node.
no setter
- previousNode â Node?
-
The previous sibling node.
no setter
- runtimeType â Type
-
A representation of the runtime type of the object.
no setterinherited
- text â String?
-
All text within this node and its descendants.
getter/setter pair
Methods
-
addEventListener(
String type, EventListener? listener, [bool? useCapture]) â void -
inherited
-
append(
Node node) â Node - Adds a node to the end of the child nodes list of this node.
-
clone(
bool? deep) â Node - 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 child) â void - Inserts all of the nodes into this node directly before child.
-
insertBefore(
Node node, Node? child) â Node -
Inserts the given node into this node directly before child.
If child is
null
, then the given node is inserted at the end of this node's child nodes. -
noSuchMethod(
Invocation invocation) â dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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 -
The equality operator.
inherited
Constants
- ATTRIBUTE_NODE â const int
- CDATA_SECTION_NODE â const int
- COMMENT_NODE â const int
- DOCUMENT_FRAGMENT_NODE â const int
- DOCUMENT_NODE â const int
- DOCUMENT_TYPE_NODE â const int
- ELEMENT_NODE â const int
- ENTITY_NODE â const int
- ENTITY_REFERENCE_NODE â const int
- NOTATION_NODE â const int
- PROCESSING_INSTRUCTION_NODE â const int
- TEXT_NODE â const int