Not documented.
- Annotations
- DocsEditable()
- DomName('HTMLCollection')
- Implements
-
- List<Node>
- Mixes-in
- ListMixin<Node>
- ImmutableListMixin<Node>
- Implemented by
Properties
- Node first
-
read-only
- bool isEmpty
-
read-only, inherited
- bool isNotEmpty
-
read-only, inherited
- Iterator<Node> iterator
-
read-only, inherited
- Node last
-
read-only
- int length
-
read / write
- int length
-
read / write, inheritedReturns the number of objects in this list.
- Iterable<Node> reversed
-
read-only, inherited
- Node single
-
read-only
Operators
-
operator [](
int index) → Node -
Returns the object at the given
index
in the list or throws aRangeError
ifindex
is out of bounds. -
operator []=(
int index, Node value) → void -
Sets the value at the given
index
in the list tovalue
or throws aRangeError
ifindex
is out of bounds.
Methods
-
add(
Node value) → void -
inheritedAdds
value
to the end of this list, extending the length by one. -
addAll(
Iterable<Node> iterable) → void -
inheritedAppends all objects of
iterable
to the end of this list. -
any(
bool test(E element)) → bool -
inheritedChecks whether any element of this iterable satisfies
test
. -
asMap(
) → Map<int,Node> -
inheritedReturns an unmodifiable
Map
view ofthis
. -
clear(
) → void -
inheritedRemoves all objects from this list; the length of the list becomes zero.
-
contains(
Object element) → bool -
inheritedReturns true if the collection contains an element equal to
element
. -
elementAt(
int index) → Node -
Returns the
index
th element. -
every(
bool test(E element)) → bool -
inheritedChecks whether every element of this iterable satisfies
test
. -
expand(
Iterable f(E element)) → Iterable -
inheritedExpands each element of this
Iterable
into zero or more elements. -
fillRange(
int start, int end, [Node fillValue]) → void -
inheritedSets the objects in the range
start
inclusive toend
exclusive to the givenfillValue
. -
firstWhere(
bool test(E element), {E orElse()}) → Node -
inheritedReturns the first element that satisfies the given predicate
test
. -
fold(
initialValue, dynamic combine(previousValue, E element)) → dynamic -
inheritedReduces a collection to a single value by iteratively combining each element of the collection with an existing value
-
forEach(
void action(E element)) → void -
inheritedApplies the function
f
to each element of this collection in iteration order. -
getRange(
int start, int end) → Iterable<Node> -
inheritedReturns an
Iterable
that iterates over the objects in the rangestart
inclusive toend
exclusive. -
indexOf(
Object element, [int startIndex = 0]) → int -
inheritedReturns the first index of
element
in this list. -
insert(
int index, Node element) → void -
inheritedInserts the object at position
index
in this list. -
insertAll(
int index, Iterable<Node> iterable) → void -
inheritedInserts all objects of
iterable
at positionindex
in this list. -
item(
int index) → Element -
join(
[String separator = ""]) → String -
inheritedConverts each element to a
String
and concatenates the strings. -
lastIndexOf(
Object element, [int startIndex]) → int -
inheritedReturns the last index in the list
a
of the givenelement
, starting the search at indexstartIndex
to 0. Returns -1 ifelement
is not found. -
lastWhere(
bool test(E element), {E orElse()}) → Node -
inheritedReturns the last element that satisfies the given predicate
test
. -
map(
dynamic f(E element)) → Iterable -
inheritedReturns a new lazy
Iterable
with elements that are created by callingf
on each element of thisIterable
in iteration order. -
namedItem(
String name) → Element -
reduce(
E combine(E previousValue, E element)) → Node -
inheritedReduces a collection to a single value by iteratively combining elements of the collection using the provided function.
-
remove(
Object object) → bool -
inheritedRemoves the first occurence of
value
from this list. -
removeAt(
int pos) → Node -
inheritedRemoves the object at position
index
from this list. -
removeLast(
) → Node -
inheritedPops and returns the last object in this list.
-
removeRange(
int start, int end) → void -
inheritedRemoves the objects in the range
start
inclusive toend
exclusive. -
removeWhere(
bool test(E element)) → void -
inheritedRemoves all objects from this list that satisfy
test
. -
replaceRange(
int start, int end, Iterable<Node> iterable) → void -
inheritedRemoves the objects in the range
start
inclusive toend
exclusive and inserts the contents ofreplacement
in its place. -
retainWhere(
bool test(E element)) → void -
inheritedRemoves all objects from this list that fail to satisfy
test
. -
setAll(
int index, Iterable<Node> iterable) → void -
inheritedOverwrites objects of
this
with the objects ofiterable
, starting at positionindex
in this list. -
setRange(
int start, int end, Iterable<Node> iterable, [int skipCount = 0]) → void -
inheritedCopies the objects of
iterable
, skippingskipCount
objects first, into the rangestart
, inclusive, toend
, exclusive, of the list. -
shuffle(
[Random random]) → void -
inheritedShuffles the elements of this list randomly.
-
singleWhere(
bool test(E element)) → Node -
inheritedReturns the single element that satisfies
test
. -
skip(
int count) → Iterable<Node> -
inheritedReturns an Iterable that provides all but the first
count
elements. -
skipWhile(
bool test(E element)) → Iterable<Node> -
inheritedReturns an Iterable that skips leading elements while
test
is satisfied. -
sort(
[int compare(E a, E b)]) → void -
inheritedSorts this list according to the order specified by the
compare
function. -
sublist(
int start, [int end]) → List<Node> -
inheritedReturns a new list containing the objects from
start
inclusive toend
exclusive. -
take(
int count) → Iterable<Node> -
inheritedReturns a lazy iterable of the
count
first elements of this iterable. -
takeWhile(
bool test(E element)) → Iterable<Node> -
inheritedReturns a lazy iterable of the leading elements satisfying
test
. -
toList(
{bool growable: true}) → List<Node> -
inheritedCreates a
List
containing the elements of thisIterable
. -
toSet(
) → Set<Node> -
inheritedCreates a
Set
containing the same elements as this iterable. -
toString(
) → String -
inheritedReturns a string representation of this object.
-
where(
bool test(E element)) → Iterable<Node> -
inheritedReturns a new lazy
Iterable
with all elements that satisfy the predicatetest
.