TreeWalker class

The object represents the nodes of a document subtree and a position within them. A can be created using the Document.createTreeWalker() method.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

TreeWalker()
factory

Properties

currentNode Node

Available on TreeWalker, provided by the PropsTreeWalker extension

getter/setter pair
filter NodeFilter?

Available on TreeWalker, provided by the PropsTreeWalker extension

no setter
hashCode int
The hash code for this object.
no setterinherited
root Node

Available on TreeWalker, provided by the PropsTreeWalker extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
whatToShow int

Available on TreeWalker, provided by the PropsTreeWalker extension

no setter

Methods

firstChild() Node?

Available on TreeWalker, provided by the PropsTreeWalker extension

lastChild() Node?

Available on TreeWalker, provided by the PropsTreeWalker extension

nextNode() Node?

Available on TreeWalker, provided by the PropsTreeWalker extension

nextSibling() Node?

Available on TreeWalker, provided by the PropsTreeWalker extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parentNode() Node?

Available on TreeWalker, provided by the PropsTreeWalker extension

previousNode() Node?

Available on TreeWalker, provided by the PropsTreeWalker extension

previousSibling() Node?

Available on TreeWalker, provided by the PropsTreeWalker extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited