Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:html
  3. ImmutableListMixin<E> class
ImmutableListMixin
description

ImmutableListMixin<E> classabstractmixin

Implemented types
Implementers
Available extensions

Constructors

ImmutableListMixin()

Properties

first↔ E
The first element.
getter/setter pairinherited
firstOrNull→ T?

Available onIterable<T>, provided by theIterableExtensions extension

The first element of this iterator, ornull if the iterable is empty.
no setter
hashCodeint
The hash code for this object.
no setterinherited
indexedIterable<(int,T)>

Available onIterable<T>, provided by theIterableExtensions extension

Pairs of elements of the indices and elements of this iterable.
no setter
isEmptybool
Whether this collection has no elements.
no setterinherited
isNotEmptybool
Whether this collection has at least one element.
no setterinherited
iteratorIterator<E>
A newIterator that allows iterating the elements of thisIterable.
no setteroverride
last↔ E
The last element.
getter/setter pairinherited
lastOrNull→ T?

Available onIterable<T>, provided by theIterableExtensions extension

The last element of this iterable, ornull if the iterable is empty.
no setter
lengthint
The number of objects in this list.
getter/setter pairinherited
nonNullsIterable<T>

Available onIterable<T?>, provided by theNullableIterableExtensions extension

The non-null elements of this iterable.
no setter
reversedIterable<E>
AnIterable of the objects in this list in reverse order.
no setterinherited
runtimeTypeType
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<T>, provided by theIterableExtensions extension

The single element of this iterator, ornull.
no setter
toJSJSArray<T>

Available onList<T>, provided by theListToJSArray extension

Converts thisList to aJSArray by either casting, unwrapping, orcloning theList.
no setter
toJSProxyOrRefJSArray<T>

Available onList<T>, provided by theListToJSArray extension

Converts thisList to aJSArray by either casting, unwrapping, orproxying theList.
no setter
waitFuture<List<T>>

Available onIterable<Future<T>>, provided by theFutureIterable extension

Waits for futures in parallel.
no setter

Methods

add(Evalue)→ void
Addsvalue to the end of this list,extending the length by one.
override
addAll(Iterable<E>iterable)→ void
Appends all objects ofiterable to the end of this list.
override
any(booltest(Eelement))bool
Checks whether any element of this iterable satisfiestest.
inherited
asMap()Map<int,E>
An unmodifiableMap view of this list.
inherited
asNameMap()Map<String,T>

Available onIterable<T>, provided by theEnumByName extension

Creates a map from the names of enum values to the values.
byName(Stringname)→ T

Available onIterable<T>, provided by theEnumByName extension

Finds the enum value in this list with namename.
cast<R>()List<R>
Returns a view of this list as a list ofR instances.
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 toelement.
inherited
elementAt(intindex)→ E
Returns theindexth element.
inherited
elementAtOrNull(intindex)→ T?

Available onIterable<T>, provided by theIterableExtensions extension

The element at positionindex of this iterable, ornull.
every(booltest(Eelement))bool
Checks whether every element of this iterable satisfiestest.
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 withfillValue.
override
firstWhere(booltest(Eelement), {EorElse()?})→ E
The first element that satisfies the given predicatetest.
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 value
inherited
followedBy(Iterable<E>other)Iterable<E>
Creates the lazy concatenation of this iterable andother.
inherited
forEach(voidaction(Eelement))→ void
Invokesaction on 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 ofelement in this list.
inherited
indexWhere(booltest(Eelement), [intstart =0])int
The first index in the list that satisfies the providedtest.
inherited
insert(intindex,Eelement)→ void
Insertselement at positionindex in this list.
override
insertAll(intindex,Iterable<E>iterable)→ void
Inserts all objects ofiterable at positionindex in this list.
override
join([Stringseparator =""])String
Converts each element to aString and concatenates the strings.
inherited
lastIndexOf(Eelement, [int?start])int
The last index ofelement in this list.
inherited
lastIndexWhere(booltest(Eelement), [int?start])int
The last index in the list that satisfies the providedtest.
inherited
lastWhere(booltest(Eelement), {EorElse()?})→ E
The last element that satisfies the given predicatetest.
inherited
map<T>(TtoElement(Ee))Iterable<T>
The current elements of this iterable modified bytoElement.
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 ofvalue from this list.
override
removeAt(intpos)→ E
Removes the object at positionindex from 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 satisfytest.
override
replaceRange(intstart,intend,Iterable<E>iterable)→ void
Replaces a range of elements with the elements ofreplacements.
override
retainWhere(booltest(Eelement))→ void
Removes all objects from this list that fail to satisfytest.
override
setAll(intindex,Iterable<E>iterable)→ void
Overwrites elements with the objects ofiterable.
override
setRange(intstart,intend,Iterable<E>iterable, [intskipCount =0])→ void
Writes some elements ofiterable into 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 satisfiestest.
inherited
skip(intcount)Iterable<E>
Creates anIterable that provides all but the firstcount elements.
inherited
skipWhile(booltest(Evalue))Iterable<E>
Creates anIterable that skips leading elements whiletest is satisfied.
inherited
sort([intcompare(Ea,Eb)?])→ void
Sorts this list according to the order specified by thecompare function.
override
sublist(intstart, [int?end])List<E>
Returns a new list containing the elements betweenstart andend.
inherited
take(intcount)Iterable<E>
Creates a lazy iterable of thecount first elements of this iterable.
inherited
takeWhile(booltest(Evalue))Iterable<E>
Creates a lazy iterable of the leading elements satisfyingtest.
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 thepredicatetest.
inherited
whereType<T>()Iterable<T>
Creates a new lazyIterable with all elements that have typeT.
inherited

Operators

operator +(List<E>other)List<E>
Returns the concatenation of this list andother.
inherited
operator ==(Objectother)bool
The equality operator.
inherited
operator [](intindex)→ E
The object at the givenindex in the list.
inherited
operator []=(intindex,Evalue)→ void
Sets the value at the givenindex in the list tovalue.
inherited
  1. Dart
  2. dart:html
  3. ImmutableListMixin<E> class
dart:html library

[8]ページ先頭

©2009-2025 Movatter.jp