DragAnim<T extends Object> constructor

const DragAnim<T extends Object>({
  1. required Widget buildItems(
    1. DragItems<T>
    ),
  2. List<T>? dataList,
  3. bool isLongPressDraggable = true,
  4. Widget buildFeedback(
    1. T data,
    2. Widget child,
    3. Size? size
    )?,
  5. Axis? axis,
  6. void onAcceptWithDetails(
    1. DragTargetDetails<T> details,
    2. T data
    )?,
  7. bool onWillAcceptWithDetails(
    1. DragTargetDetails<T> details,
    2. T data,
    3. bool isTimer
    )?,
  8. void onLeave(
    1. T? moveData,
    2. T data
    )?,
  9. void onMove(
    1. T data,
    2. DragTargetDetails<T> details
    )?,
  10. HitTestBehavior hitTestBehavior = HitTestBehavior.translucent,
  11. Axis scrollDirection = Axis.vertical,
  12. void onDragStarted(
    1. T data
    )?,
  13. void onDragUpdate(
    1. DragUpdateDetails details,
    2. T data
    )?,
  14. void onDraggableCanceled(
    1. Velocity velocity,
    2. Offset offset,
    3. T data
    )?,
  15. void onDragEnd(
    1. DraggableDetails details,
    2. T data
    )?,
  16. void onDragCompleted(
    1. T data
    )?,
  17. ScrollController? scrollController,
  18. double draggingWidgetOpacity = 0.5,
  19. double edgeScroll = 0.06,
  20. double scrollSpeed = 1,
  21. bool isEdgeScroll = true,
  22. bool isDrag = true,
  23. List<T>? isNotDragList,
  24. DragAnchorStrategy dragAnchorStrategy = childDragAnchorStrategy,
  25. int maxSimultaneousDrags = 1,
  26. Duration? longPressDelay,
  27. Key? key,
})

Implementation

const DragAnim({
  required this.buildItems,
  this.dataList,
  this.isLongPressDraggable = true,
  this.buildFeedback,
  this.axis,
  this.onAcceptWithDetails,
  this.onWillAcceptWithDetails,
  this.onLeave,
  this.onMove,
  this.hitTestBehavior = HitTestBehavior.translucent,
  this.scrollDirection = Axis.vertical,
  this.onDragStarted,
  this.onDragUpdate,
  this.onDraggableCanceled,
  this.onDragEnd,
  this.onDragCompleted,
  this.scrollController,
  this.draggingWidgetOpacity = 0.5,
  this.edgeScroll = 0.06,
  this.scrollSpeed = 1,
  this.isEdgeScroll = true,
  this.isDrag = true,
  this.isNotDragList,
  this.dragAnchorStrategy = childDragAnchorStrategy,
  this.maxSimultaneousDrags = 1,
  this.longPressDelay,
  Key? key,
}) : super(key: key);