fillWith method

void fillWith(
  1. T f()
)

Fills this slice with the value return by calling f repeatedly.

Implementation

void fillWith(T Function() f) {
  for (var i = _start; i < _end; i++) {
    _list[i] = f();
  }
}