replaceRangeT method

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

替换指定区域 返回 新数组

Implementation

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