ListAnimatedListDiffDispatcher<T> constructor

ListAnimatedListDiffDispatcher<T>(
  1. {@required AnimatedListController animatedListController,
  2. @required ListAnimatedListDiffItemBuilder<T> itemBuilder,
  3. @required List<T> currentList,
  4. @required ListAnimatedListDiffComparator<T> comparator}
)

Implementation

ListAnimatedListDiffDispatcher({
  @required AnimatedListController animatedListController,
  @required ListAnimatedListDiffItemBuilder<T> itemBuilder,
  @required List<T> currentList,
  @required ListAnimatedListDiffComparator<T> comparator,
}) : super(
        animatedListController: animatedListController,
        initialList: currentList,
        itemBuilder:
            (BuildContext context, List<T> list, int index, bool animating) =>
                itemBuilder.call(context, list[index], animating),
        comparator: _ListAnimatedListDiffComparatorDelegate<T>(comparator),
      );