NodeList extension type
NodeList
objects are collections of
nodes, usually
returned by properties such as Node.childNodes and methods such as
document.querySelectorAll
.
Note: Although
NodeList
is not anArray
, it is possible to iterate over it withforEach()
. It can also be converted to a realArray
usingArray.from()
.
- on
- Implemented types
- Implementers
Properties
Methods
-
item(
int index) → Node? -
Returns a node from a
NodeList
by index. This method doesn't throw exceptions as long as you provide arguments. A value ofnull
is returned if the index is out of range, and aTypeError
is thrown if no argument is provided. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited