FileList class
Properties
- first↔File
- The first element.getter/setter pairinherited-setteroverride-getter
- hashCode→int
- The hash code for this object.no setterinherited
- isEmpty→bool
- Whether this collection has no elements.no setterinherited
- isNotEmpty→bool
- Whether this collection has at least one element.no setterinherited
- iterator→Iterator<
File> - A new
Iteratorthat allows iterating the elements of thisIterable.no setterinherited - last↔File
- The last element.getter/setter pairinherited-setteroverride-getter
- length↔int
- The number of objects in this list.getter/setter pairoverride
- reversed→Iterable<
File> - 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→File
- Checks that this iterable has only one element, and returns that element.no setteroverride
Methods
- add(
Filevalue)→ void - Adds
valueto the end of this list,extending the length by one.inherited - addAll(
Iterable< File> iterable)→ void - Appends all objects of
iterableto the end of this list.inherited - any(
booltest(Fileelement))→bool - Checks whether any element of this iterable satisfies
test.inherited - asMap(
)→Map< int,File> - An unmodifiableMap view of this list.inherited
- 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)→File - Returns the
indexth element.override - every(
booltest(Fileelement))→bool - Checks whether every element of this iterable satisfies
test.inherited - expand<
T> (Iterable< T> f(Fileelement))→Iterable<T> - Expands each element of thisIterable into zero or more elements.inherited
- fillRange(
intstart,intend, [File?fillValue])→ void - Overwrites a range of elements with
fillValue.inherited - firstWhere(
booltest(Fileelement), {FileorElse()?})→File - The first element that satisfies the given predicate
test.inherited - fold<
T> (TinitialValue,Tcombine(TpreviousValue,Fileelement))→ T - Reduces a collection to a single value by iteratively combining eachelement of the collection with an existing valueinherited
- followedBy(
Iterable< File> other)→Iterable<File> - Creates the lazy concatenation of this iterable and
other.inherited - forEach(
voidaction(Fileelement))→ void - Invokes
actionon each element of this iterable in iteration order.inherited - getRange(
intstart,intend)→Iterable< File> - Creates anIterable that iterates over a range of elements.inherited
- indexOf(
Object?element, [intstart =0])→int - The first index of
elementin this list.inherited - indexWhere(
booltest(Fileelement), [intstart =0])→int - The first index in the list that satisfies the provided
test.inherited - insert(
intindex,Fileelement)→ void - Inserts
elementat positionindexin this list.inherited - insertAll(
intindex,Iterable< File> iterable)→ void - Inserts all objects of
iterableat positionindexin this list.inherited - item(
intindex)→File? - join(
[Stringseparator =""])→String - Converts each element to aString and concatenates the strings.inherited
- lastIndexOf(
Object?element, [int?start])→int - The last index of
elementin this list.inherited - lastIndexWhere(
booltest(Fileelement), [int?start])→int - The last index in the list that satisfies the provided
test.inherited - lastWhere(
booltest(Fileelement), {FileorElse()?})→File - The last element that satisfies the given predicate
test.inherited - map<
T> (Tf(Fileelement))→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(
Filecombine(FilepreviousValue,Fileelement))→File - 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.inherited - removeAt(
intpos)→File - Removes the object at position
indexfrom this list.inherited - removeLast(
)→File - Removes and returns the last object in this list.inherited
- removeRange(
intstart,intend)→ void - Removes a range of elements from the list.inherited
- removeWhere(
booltest(Fileelement))→ void - Removes all objects from this list that satisfy
test.inherited - replaceRange(
intstart,intend,Iterable< File> iterable)→ void - Replaces a range of elements with the elements of
replacements.inherited - retainWhere(
booltest(Fileelement))→ void - Removes all objects from this list that fail to satisfy
test.inherited - setAll(
intindex,Iterable< File> iterable)→ void - Overwrites elements with the objects of
iterable.inherited - setRange(
intstart,intend,Iterable< File> iterable, [intskipCount =0])→ void - Writes some elements of
iterableinto a range of this list.inherited - shuffle(
[Random?random])→ void - Shuffles the elements of this list randomly.inherited
- singleWhere(
booltest(Fileelement), {FileorElse()?})→File - The single element that satisfies
test.inherited - skip(
intcount)→Iterable< File> - Creates anIterable that provides all but the first
countelements.inherited - skipWhile(
booltest(Fileelement))→Iterable< File> - Creates an
Iterablethat skips leading elements whiletestis satisfied.inherited - sort(
[intcompare(Filea,Fileb)?])→ void - Sorts this list according to the order specified by the
comparefunction.inherited - sublist(
intstart, [int?end])→List< File> - Returns a new list containing the elements between
startandend.inherited - take(
intcount)→Iterable< File> - Creates a lazy iterable of the
countfirst elements of this iterable.inherited - takeWhile(
booltest(Fileelement))→Iterable< File> - Creates a lazy iterable of the leading elements satisfying
test.inherited - toList(
{boolgrowable =true})→List< File> - Creates aList containing the elements of thisIterable.inherited
- toSet(
)→Set< File> - Creates aSet containing the same elements as this iterable.inherited
- toString(
)→String - A string representation of this object.inherited
- where(
booltest(Fileelement))→Iterable< File> - 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< File> other)→List<File> - Returns the concatenation of this list and
other.inherited - operator ==(
Objectother)→bool - The equality operator.inherited
- operator [](
intindex)→File - The object at the given
indexin the list.override - operator []=(
intindex,Filevalue)→ void - Sets the value at the given
indexin the list tovalue.override