AnimatedListDiffListDispatcher<T> constructor
AnimatedListDiffListDispatcher<T> ({
- required AnimatedListController controller,
- required AnimatedListDiffListBuilder<
T> itemBuilder, - required List<
T> currentList, - required AnimatedListDiffListBaseComparator<
T> comparator, - 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,
);