listZero static method

void listZero(
  1. List<int> list, [
  2. int l = -1
])

Implementation

static void listZero(List<int> list, [int l = -1]) {
  final length = l >= 0 ? l : list.length;
  for (var i = 0; i < length; i++) {
    list[i] = 0;
  }
}