ReadonlyArray<T> class
- Implementers
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
- @anonymous
Constructors
-
ReadonlyArray({num? length, String toString$()?, String toLocaleString()?, String join([String?])?, List slice([num?, num?])?, num indexOf(dynamic, [num?])?, num lastIndexOf(dynamic, [num?])?, bool some(Object? (dynamic, num, List), [dynamic])?, void forEach(void (dynamic, num, List), [dynamic])?, List<
U> map<U>(U (dynamic, num, List), [dynamic])?, num findIndex(Object? (dynamic, num, List), [dynamic])?, IterableIterator<(num, dynamic)> entries()?, IterableIterator<num> keys()?, IterableIterator values()?, bool includes(dynamic, [num?])?, List<U> flatMap<U, This>(Object (dynamic, num, List), [This?])?, List flat<A, D extends num>([D?])?, dynamic at(num)?, num findLastIndex(Object? (dynamic, num, List), [dynamic])?, List toReversed()?, List toSorted([num (dynamic, dynamic)?])?, List with$(num, dynamic)?}) -
factory
Properties
- at ↔ T? Function(num)
-
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair -
entries
↔ IterableIterator<
(num, T)> Function() -
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair -
every
→ ({dynamic Function<
S extends T>(dynamic predicate(T, num, List< $1, bool Function(Object? predicate(T, num, List<T> ), [dynamic thisArg])T> ), [dynamic thisArg]) $2}) -
Available on ReadonlyArray<
Overload accessor: $1, $2T> , provided by the ReadonlyArray$Typings extensionno setter -
filter
→ ({List<
S> Function<S extends T>(dynamic predicate(T, num, List< $1, List<T> ), [dynamic thisArg])T> Function(Object? predicate(T, num, List<T> ), [dynamic thisArg]) $2}) -
Available on ReadonlyArray<
Overload accessor: $1, $2T> , provided by the ReadonlyArray$Typings extensionno setter -
find
→ ({S? Function<
S extends T>(dynamic predicate(T, num, List< $1, T? Function(Object? predicate(T, num, List<T> ), [dynamic thisArg])T> ), [dynamic thisArg]) $2}) -
Available on ReadonlyArray<
Overload accessor: $1, $2T> , provided by the ReadonlyArray$Typings extensionno setter -
findIndex
↔ num Function(Object? (T, num, List<
T> ), [dynamic]) -
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair -
findLast
→ ({S? Function<
S extends T>(dynamic predicate(T, num, List< $1, T? Function(Object? predicate(T, num, List<T> ), [dynamic thisArg])T> ), [dynamic thisArg]) $2}) -
Available on ReadonlyArray<
Overload accessor: $1, $2T> , provided by the ReadonlyArray$Typings extensionno setter -
findLastIndex
↔ num Function(Object? (T, num, List<
T> ), [dynamic]) -
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair -
flat
↔ List Function<
A, D extends num>([D?]) -
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair -
flatMap
↔ List<
U> Function<U, This>(Object (T, num, List< T> ), [This?]) -
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair -
forEach
↔ void Function(void (T, num, List<
T> ), [dynamic]) -
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- includes ↔ bool Function(T, [num?])
-
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair - indexOf ↔ num Function(T, [num?])
-
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair - join ↔ String Function([String?])
-
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair -
keys
↔ IterableIterator<
num> Function() -
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair - lastIndexOf ↔ num Function(T, [num?])
-
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair - length → num
-
Available on ReadonlyArray<
Gets the length of the array. This is a number one higher than the highest element defined in an array.T> , provided by the ReadonlyArray$Typings extensionno setter -
map
↔ List<
U> Function<U>(U (T, num, List< T> ), [dynamic]) -
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair -
reduce
→ ({T Function(T callbackfn(T, T, num, List<
T> )) $1, T Function(T callbackfn(T, T, num, List<T> ), T initialValue) $2, U Function<U>(U callbackfn(U, T, num, List< $3})T> ), U initialValue) -
Available on ReadonlyArray<
Overload accessor: $1, $2, $3T> , provided by the ReadonlyArray$Typings extensionno setter -
reduceRight
→ ({T Function(T callbackfn(T, T, num, List<
T> )) $1, T Function(T callbackfn(T, T, num, List<T> ), T initialValue) $2, U Function<U>(U callbackfn(U, T, num, List< $3})T> ), U initialValue) -
Available on ReadonlyArray<
Overload accessor: $1, $2, $3T> , provided by the ReadonlyArray$Typings extensionno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
slice
↔ List<
T> Function([num?, num?]) -
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair -
some
↔ bool Function(Object? (T, num, List<
T> ), [dynamic]) -
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair - toLocaleString ↔ String Function()
-
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair -
toReversed
↔ List<
T> Function() -
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair -
toSorted
↔ List<
T> Function([num (T, T)?]) -
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair - toString$ ↔ String Function()
-
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair -
values
↔ IterableIterator<
T> Function() -
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair -
with$
↔ List<
T> Function(num, T) -
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extensiongetter/setter pair
Methods
-
concat(
[Iterable? items]) → List< T> -
Available on ReadonlyArray<
Combines two or more arrays. @param items Additional items to add to the end of array1.T> , provided by the ReadonlyArray$Typings extension -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toSpliced(
num start, num deleteCount, [Iterable? items]) → List< T> -
Available on ReadonlyArray<
Copies an array and removes elements while, if necessary, inserting new elements in their place, returning the remaining elements. @param start The zero-based location in the array from which to start removing elements. @param deleteCount The number of elements to remove. @param items Elements to insert into the copied array in place of the deleted elements. @returns A copy of the original array with the remaining elements.T> , provided by the ReadonlyArray$Typings extension -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
num index) → T -
Available on ReadonlyArray<
T> , provided by the ReadonlyArray$Typings extension