toSpliced method

List<T> toSpliced(
  1. num start,
  2. num deleteCount, [
  3. Iterable? items
])

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.

Implementation

_i2.List<T> toSpliced(
  _i2.num start,
  _i2.num deleteCount, [
  _i2.Iterable<_i2.dynamic>? items,
]) =>
    ((_i6.callMethod(
      this,
      'toSpliced',
      [
        start,
        deleteCount,
        ...?items,
      ],
    )) as _i2.List)
        .cast();