ConstrainedAnimatedReorderableListView<E extends Object> constructor

const ConstrainedAnimatedReorderableListView<E extends Object>({
  1. Key? key,
  2. required List<E> items,
  3. required BLVItemBuilder<Widget, E> itemBuilder,
  4. required ReorderCallback onReorder,
  5. List<AnimationEffect>? enterTransition,
  6. List<AnimationEffect>? exitTransition,
  7. Duration? insertDuration,
  8. Duration? removeDuration,
  9. void onReorderStart(
    1. int
    )?,
  10. void onReorderEnd(
    1. int
    )?,
  11. ReorderItemProxyDecorator? proxyDecorator,
  12. Axis scrollDirection = Axis.vertical,
  13. EdgeInsetsGeometry? padding,
  14. bool reverse = false,
  15. ScrollController? controller,
  16. bool? primary,
  17. ScrollPhysics? physics,
  18. ScrollBehavior? scrollBehavior,
  19. String? restorationId,
  20. bool buildDefaultDragHandles = true,
  21. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  22. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  23. Clip clipBehavior = Clip.hardEdge,
  24. AnimatedWidgetBuilder<Widget, dynamic>? insertItemBuilder,
  25. AnimatedWidgetBuilder<Widget, dynamic>? removeItemBuilder,
  26. bool longPressDraggable = true,
  27. bool shrinkWrap = false,
  28. required bool isSameItem(
    1. E a,
    2. E b
    ),
  29. Duration dragStartDelay = const Duration(milliseconds: 500),
  30. List<E> nonDraggableItems = const [],
  31. List<E> lockedItems = const [],
  32. bool enableSwap = true,
})

Implementation

const ConstrainedAnimatedReorderableListView({
  Key? key,
  required this.items,
  required this.itemBuilder,
  required this.onReorder,
  this.enterTransition,
  this.exitTransition,
  this.insertDuration,
  this.removeDuration,
  this.onReorderStart,
  this.onReorderEnd,
  this.proxyDecorator,
  this.scrollDirection = Axis.vertical,
  this.padding,
  this.reverse = false,
  this.controller,
  this.primary,
  this.physics,
  this.scrollBehavior,
  this.restorationId,
  this.buildDefaultDragHandles = true,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  this.dragStartBehavior = DragStartBehavior.start,
  this.clipBehavior = Clip.hardEdge,
  this.insertItemBuilder,
  this.removeItemBuilder,
  this.longPressDraggable = true,
  this.shrinkWrap = false,
  required this.isSameItem,
  this.dragStartDelay = const Duration(milliseconds: 500),
  this.nonDraggableItems = const [],
  this.lockedItems = const [],
  this.enableSwap = true,
}) : super(key: key);