AnimatedListDiffListDispatcher<T> constructor

AnimatedListDiffListDispatcher<T>({
  1. required AnimatedListController controller,
  2. required AnimatedListDiffListBuilder<T> itemBuilder,
  3. required List<T> currentList,
  4. required AnimatedListDiffListBaseComparator<T> comparator,
  5. int spawnNewInsolateCount = kSpawnNewIsolateCount,
})

Implementation

AnimatedListDiffListDispatcher(
    {required AnimatedListController controller,
    required AnimatedListDiffListBuilder<T> itemBuilder,
    required List<T> currentList,
    required AnimatedListDiffListBaseComparator<T> comparator,
    int spawnNewInsolateCount = kSpawnNewIsolateCount})
    : super(
        controller: controller,
        initialList: currentList,
        builder: (BuildContext context, List<T> list, int index,
                AnimatedWidgetBuilderData data) =>
            itemBuilder.call(context, list[index], data),
        comparator: _ListDiffComparator<T>(comparator),
        spawnNewInsolateCount: spawnNewInsolateCount,
      );