insertAllItems method

void insertAllItems(
  1. int index,
  2. int length, {
  3. Duration duration = _kDuration,
})
inherited

Insert multiple items at index and start an animation that will be passed to AnimatedGrid.itemBuilder or AnimatedList.itemBuilder when the items are visible.

Implementation

void insertAllItems(int index, int length, { Duration duration = _kDuration }) {
  for (int i = 0; i < length; i++) {
    insertItem(index + i, duration: duration);
  }
}