notifyReplacedRange method

void notifyReplacedRange (
  1. int from,
  2. int removeCount,
  3. int insertCount,
  4. NullableIndexedWidgetBuilder removeItemBuilder
)

Notify the AnimatedSliverList that a range starting from from and removeCount long has been replaced with a new insertCount long range. Call this method after you have updated your list. A new builder removeItemBuilder has to be provided in order to build the replaced items when animating.

Implementation

void notifyReplacedRange(int from, int removeCount, int insertCount,
    NullableIndexedWidgetBuilder removeItemBuilder) {
  _checkAdaptor();
  _adaptor._notifyReplacedRange(
      from, removeCount, insertCount, removeItemBuilder);
}