NodeIterator class
NodeIterator is used to traverse the nodes in visual order.
Constructors
- NodeIterator({required Document document, required Node startNode, Node? endNode})
- Creates a NodeIterator.
Properties
- current → Node
-
The current element.
no setteroverride
- document → Document
-
The document to iterate.
final
- endNode → Node?
-
The node to end the iteration with.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startNode → Node
-
The node to start the iteration with.
final
Methods
-
moveNext(
) → bool -
Advances the iterator to the next element of the iteration.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toList(
) → List< Node> -
Transforms the NodeIterator into an
Iterable containing all of the relevant
Node
's -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited