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