- Implemented types
- List<
E>
- List<
- Implementers
- Available extensions
Constructors
Properties
- first↔ E
- The first element.getter/setter pairinherited
- firstOrNull→ T?
Available onIterable<
The first element of this iterator, orT> , provided by theIterableExtensions extensionnullif the iterable is empty.no setter- hashCode→int
- The hash code for this object.no setterinherited
- indexed→Iterable<
(int,T)> Available onIterable<
Pairs of elements of the indices and elements of this iterable.T> , provided by theIterableExtensions extensionno setter- isEmpty→bool
- Whether this collection has no elements.no setterinherited
- isNotEmpty→bool
- Whether this collection has at least one element.no setterinherited
- iterator→Iterator<
E> - A new
Iteratorthat allows iterating the elements of thisIterable.no setteroverride - last↔ E
- The last element.getter/setter pairinherited
- lastOrNull→ T?
Available onIterable<
The last element of this iterable, orT> , provided by theIterableExtensions extensionnullif the iterable is empty.no setter- length↔int
- The number of objects in this list.getter/setter pairinherited
- nonNulls→Iterable<
T> Available onIterable<
The non-T?> , provided by theNullableIterableExtensions extensionnullelements of this iterable.no setter- reversed→Iterable<
E> - AnIterable of the objects in this list in reverse order.no setterinherited
- runtimeType→Type
- A representation of the runtime type of the object.no setterinherited
- single→ E
- Checks that this iterable has only one element, and returns that element.no setterinherited
- singleOrNull→ T?
Available onIterable<
The single element of this iterator, orT> , provided by theIterableExtensions extensionnull.no setter- toJS→JSArray<
T> Available onList<
Converts thisList to aJSArray by either casting, unwrapping, orcloning theList.T> , provided by theListToJSArray extensionno setter- toJSProxyOrRef→JSArray<
T> Available onList<
Converts thisList to aJSArray by either casting, unwrapping, orproxying theList.T> , provided by theListToJSArray extensionno setter- wait→Future<
List< T> > Available onIterable<
Waits for futures in parallel.Future< , provided by theFutureIterable extensionT> >no setter
Methods
- add(
Evalue)→ void - Adds
valueto the end of this list,extending the length by one.override - addAll(
Iterable< E> iterable)→ void - Appends all objects of
iterableto the end of this list.override - any(
booltest(Eelement))→bool - Checks whether any element of this iterable satisfies
test.inherited - asMap(
)→Map< int,E> - An unmodifiableMap view of this list.inherited
- asNameMap(
)→Map< String,T> Available onIterable<
Creates a map from the names of enum values to the values.T> , provided by theEnumByName extension- byName(
Stringname)→ T Available onIterable<
Finds the enum value in this list with nameT> , provided by theEnumByName extensionname.- cast<
R> ()→List< R> - Returns a view of this list as a list of
Rinstances.inherited - clear(
)→ void - Removes all objects from this list; the length of the list becomes zero.inherited
- contains(
Object?element)→bool - Whether the collection contains an element equal to
element.inherited - elementAt(
intindex)→ E - Returns the
indexth element.inherited - elementAtOrNull(
intindex)→ T? Available onIterable<
The element at positionT> , provided by theIterableExtensions extensionindexof this iterable, ornull.- every(
booltest(Eelement))→bool - Checks whether every element of this iterable satisfies
test.inherited - expand<
T> (Iterable< T> toElements(Eelement))→Iterable<T> - Expands each element of thisIterable into zero or more elements.inherited
- fillRange(
intstart,intend, [E?fillValue])→ void - Overwrites a range of elements with
fillValue.override - firstWhere(
booltest(Eelement), {EorElse()?})→ E - The first element that satisfies the given predicate
test.inherited - fold<
T> (TinitialValue,Tcombine(TpreviousValue,Eelement))→ T - Reduces a collection to a single value by iteratively combining eachelement of the collection with an existing valueinherited
- followedBy(
Iterable< E> other)→Iterable<E> - Creates the lazy concatenation of this iterable and
other.inherited - forEach(
voidaction(Eelement))→ void - Invokes
actionon each element of this iterable in iteration order.inherited - getRange(
intstart,intend)→Iterable< E> - Creates anIterable that iterates over a range of elements.inherited
- indexOf(
Eelement, [intstart =0])→int - The first index of
elementin this list.inherited - indexWhere(
booltest(Eelement), [intstart =0])→int - The first index in the list that satisfies the provided
test.inherited - insert(
intindex,Eelement)→ void - Inserts
elementat positionindexin this list.override - insertAll(
intindex,Iterable< E> iterable)→ void - Inserts all objects of
iterableat positionindexin this list.override - join(
[Stringseparator =""])→String - Converts each element to aString and concatenates the strings.inherited
- lastIndexOf(
Eelement, [int?start])→int - The last index of
elementin this list.inherited - lastIndexWhere(
booltest(Eelement), [int?start])→int - The last index in the list that satisfies the provided
test.inherited - lastWhere(
booltest(Eelement), {EorElse()?})→ E - The last element that satisfies the given predicate
test.inherited - map<
T> (TtoElement(Ee))→Iterable< T> - The current elements of this iterable modified by
toElement.inherited - noSuchMethod(
Invocationinvocation)→ dynamic - Invoked when a nonexistent method or property is accessed.inherited
- reduce(
Ecombine(Evalue,Eelement))→ E - Reduces a collection to a single value by iteratively combining elementsof the collection using the provided function.inherited
- remove(
Object?object)→bool - Removes the first occurrence of
valuefrom this list.override - removeAt(
intpos)→ E - Removes the object at position
indexfrom this list.override - removeLast(
)→ E - Removes and returns the last object in this list.override
- removeRange(
intstart,intend)→ void - Removes a range of elements from the list.override
- removeWhere(
booltest(Eelement))→ void - Removes all objects from this list that satisfy
test.override - replaceRange(
intstart,intend,Iterable< E> iterable)→ void - Replaces a range of elements with the elements of
replacements.override - retainWhere(
booltest(Eelement))→ void - Removes all objects from this list that fail to satisfy
test.override - setAll(
intindex,Iterable< E> iterable)→ void - Overwrites elements with the objects of
iterable.override - setRange(
intstart,intend,Iterable< E> iterable, [intskipCount =0])→ void - Writes some elements of
iterableinto a range of this list.override - shuffle(
[Random?random])→ void - Shuffles the elements of this list randomly.override
- singleWhere(
booltest(Eelement), {EorElse()?})→ E - The single element that satisfies
test.inherited - skip(
intcount)→Iterable< E> - Creates anIterable that provides all but the first
countelements.inherited - skipWhile(
booltest(Evalue))→Iterable< E> - Creates an
Iterablethat skips leading elements whiletestis satisfied.inherited - sort(
[intcompare(Ea,Eb)?])→ void - Sorts this list according to the order specified by the
comparefunction.override - sublist(
intstart, [int?end])→List< E> - Returns a new list containing the elements between
startandend.inherited - take(
intcount)→Iterable< E> - Creates a lazy iterable of the
countfirst elements of this iterable.inherited - takeWhile(
booltest(Evalue))→Iterable< E> - Creates a lazy iterable of the leading elements satisfying
test.inherited - toList(
{boolgrowable =true})→List< E> - Creates aList containing the elements of thisIterable.inherited
- toSet(
)→Set< E> - Creates aSet containing the same elements as this iterable.inherited
- toString(
)→String - A string representation of this object.inherited
- where(
booltest(Eelement))→Iterable< E> - Creates a new lazyIterable with all elements that satisfy thepredicate
test.inherited - whereType<
T> ()→Iterable< T> - Creates a new lazyIterable with all elements that have type
T.inherited
Operators
- operator +(
List< E> other)→List<E> - Returns the concatenation of this list and
other.inherited - operator ==(
Objectother)→bool - The equality operator.inherited
- operator [](
intindex)→ E - The object at the given
indexin the list.inherited - operator []=(
intindex,Evalue)→ void - Sets the value at the given
indexin the list tovalue.inherited