splice method

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

Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted 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 array in place of the deleted elements. @returns An array containing the elements that were deleted.

Implementation

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