replaceRangeT method

List<T> replaceRangeT(
  1. int start,
  2. int end,
  3. Iterable<T> replacement, {
  4. bool isReplace = true,
})

Replace the specified area and return a new array

Implementation

List<T> replaceRangeT(int start, int end, Iterable<T> replacement,
    {bool isReplace = true}) {
  if (isReplace) {
    replaceRange(start, end, replacement);
  }
  return this;
}