FillRaw method

PP FillRaw(
  1. int count,
  2. P init(
    1. int
    ), {
  3. String? key,
})

Fills a tracked slot of count pointers by calling init(i) for each index and storing the result.

Implementation

PP FillRaw(int count, P Function(int) init, {String? key}) {
  final pp = At(slotKey(key), count);
  for (int i = 0; i < count; i++) indexSetterFunc(pp, i, init(i));
  return pp;
}