removeAllItems method

void removeAllItems(
  1. AnimatedRemovedItemBuilder builder,
  2. {Duration duration = _kDuration}

Remove all the items and start an animation that will be passed to builder when the items are visible.

Items are removed immediately. However, the items will still appear for duration and during that time builder must construct its widget as needed.

This method's semantics are the same as Dart's List.clear method: it removes all the items in the list.


void removeAllItems(AnimatedRemovedItemBuilder builder, { Duration duration = _kDuration }) {
  for (int i = _itemsCount - 1 ; i >= 0; i--) {
    removeItem(i, builder, duration: duration);