fill function

  1. @Deprecated('Use inbuilt List.fillRange() instead')
List fill(
  1. List list,
  2. dynamic value, {
  3. int start = 0,
  4. dynamic end,
})

Implementation

@Deprecated('Use inbuilt List.fillRange() instead')
List fill(List list, dynamic value, {int start = 0, dynamic end}) {
  end ??= list.length;
  list.fillRange(start, end, value);
  return list;
}