ReadonlyArray<T> constructor

ReadonlyArray<T>({
  1. num? length,
  2. String toString$()?,
  3. String toLocaleString()?,
  4. String join([
    1. String?
    ])?,
  5. List slice([
    1. num?,
    2. num?
    ])?,
  6. num indexOf(
    1. dynamic, [
    2. num?
    ])?,
  7. num lastIndexOf(
    1. dynamic, [
    2. num?
    ])?,
  8. bool some(
    1. Object? (
      1. dynamic,
      2. num,
      3. List
      ), [
    2. dynamic
    ])?,
  9. void forEach(
    1. void (
      1. dynamic,
      2. num,
      3. List
      ), [
    2. dynamic
    ])?,
  10. List<U> map<U>(
    1. U (
      1. dynamic,
      2. num,
      3. List
      ), [
    2. dynamic
    ])?,
  11. num findIndex(
    1. Object? (
      1. dynamic,
      2. num,
      3. List
      ), [
    2. dynamic
    ])?,
  12. IterableIterator<(num, dynamic)> entries()?,
  13. IterableIterator<num> keys()?,
  14. IterableIterator values()?,
  15. bool includes(
    1. dynamic, [
    2. num?
    ])?,
  16. List<U> flatMap<U, This>(
    1. Object (
      1. dynamic,
      2. num,
      3. List
      ), [
    2. This?
    ])?,
  17. List flat<A, D extends num>([
    1. D?
    ])?,
  18. dynamic at(
    1. num
    )?,
  19. num findLastIndex(
    1. Object? (
      1. dynamic,
      2. num,
      3. List
      ), [
    2. dynamic
    ])?,
  20. List toReversed()?,
  21. List toSorted([
    1. num (
      1. dynamic,
      2. dynamic
      )?
    ])?,
  22. List with$(
    1. num,
    2. 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$),
    );