ReadonlyArray<T> constructor
ReadonlyArray<T> ({
- num? length,
- String toString$()?,
- String toLocaleString()?,
- String join([])?,
- List slice([])?,
- num indexOf(
- dynamic, [
- num?
- num lastIndexOf(
- dynamic, [
- num?
- bool some(])?,
- void forEach(])?,
- List<
U> map<U>(])?, - num findIndex(])?,
- IterableIterator<
(num, dynamic)> entries()?, - IterableIterator<
num> keys()?, - IterableIterator values()?,
- bool includes(
- dynamic, [
- num?
- List<
U> flatMap<U, This>(])?, - List flat<
A, D extends num>([ - D?
- dynamic at()?,
- num findLastIndex(])?,
- List toReversed()?,
- List toSorted([
- num (
- dynamic,
- dynamic
- num (
- List with$(
- num,
- dynamic
Implementation
factory ReadonlyArray({
_i2.num? length,
_i2.String Function()? toString$,
_i2.String Function()? toLocaleString,
_i2.String Function([_i2.String?])? join,
_i2.List<_i2.dynamic> Function([
_i2.num?,
_i2.num?,
])? slice,
_i2.num Function(
_i2.dynamic, [
_i2.num?,
])? indexOf,
_i2.num Function(
_i2.dynamic, [
_i2.num?,
])? lastIndexOf,
_i2.bool Function(
_i2.Object? Function(
_i2.dynamic,
_i2.num,
_i2.List<_i2.dynamic>,
), [
_i2.dynamic,
])? some,
void Function(
void Function(
_i2.dynamic,
_i2.num,
_i2.List<_i2.dynamic>,
), [
_i2.dynamic,
])? forEach,
_i2.List<U> Function<U>(
U Function(
_i2.dynamic,
_i2.num,
_i2.List<_i2.dynamic>,
), [
_i2.dynamic,
])? map,
_i2.num Function(
_i2.Object? Function(
_i2.dynamic,
_i2.num,
_i2.List<_i2.dynamic>,
), [
_i2.dynamic,
])? findIndex,
_i10.IterableIterator<
(
_i2.num,
_i2.dynamic,
)>
Function()?
entries,
_i10.IterableIterator<_i2.num> Function()? keys,
_i10.IterableIterator<_i2.dynamic> Function()? values,
_i2.bool Function(
_i2.dynamic, [
_i2.num?,
])? includes,
_i2.List<U> Function<U, This>(
_i2.Object Function(
_i2.dynamic,
_i2.num,
_i2.List<_i2.dynamic>,
), [
This?,
])? flatMap,
_i2.List<_i2.dynamic> Function<A, D extends _i2.num>([D?])? flat,
_i2.dynamic Function(_i2.num)? at,
_i2.num Function(
_i2.Object? Function(
_i2.dynamic,
_i2.num,
_i2.List<_i2.dynamic>,
), [
_i2.dynamic,
])? findLastIndex,
_i2.List<_i2.dynamic> Function()? toReversed,
_i2.List<_i2.dynamic> Function(
[_i2.num Function(
_i2.dynamic,
_i2.dynamic,
)?])?
toSorted,
_i2.List<_i2.dynamic> Function(
_i2.num,
_i2.dynamic,
)? with$,
}) =>
ReadonlyArray._(
length: length,
toString$: toString$ == null ? null : _i6.allowInterop(toString$),
toLocaleString:
toLocaleString == null ? null : _i6.allowInterop(toLocaleString),
join: join == null ? null : _i6.allowInterop(join),
slice: slice == null ? null : _i6.allowInterop(slice),
indexOf: indexOf == null ? null : _i6.allowInterop(indexOf),
lastIndexOf: lastIndexOf == null ? null : _i6.allowInterop(lastIndexOf),
some: some == null ? null : _i6.allowInterop(some),
forEach: forEach == null ? null : _i6.allowInterop(forEach),
map: map == null ? null : _i6.allowInterop(map),
findIndex: findIndex == null ? null : _i6.allowInterop(findIndex),
entries: entries == null ? null : _i6.allowInterop(entries),
keys: keys == null ? null : _i6.allowInterop(keys),
values: values == null ? null : _i6.allowInterop(values),
includes: includes == null ? null : _i6.allowInterop(includes),
flatMap: flatMap == null ? null : _i6.allowInterop(flatMap),
flat: flat == null ? null : _i6.allowInterop(flat),
at: at == null
? null
: _i6.allowInterop((p0) => () => at(p0) ?? _i5.undefined),
findLastIndex:
findLastIndex == null ? null : _i6.allowInterop(findLastIndex),
toReversed: toReversed == null ? null : _i6.allowInterop(toReversed),
toSorted: toSorted == null ? null : _i6.allowInterop(toSorted),
with$: with$ == null ? null : _i6.allowInterop(with$),
);