DragAnim<T extends Object> constructor
const
DragAnim<T extends Object> ({
- required Widget buildItems(
- DragItems<
T>
- DragItems<
- List<
T> ? dataList, - bool isLongPressDraggable = true,
- Widget buildFeedback()?,
- Axis? axis,
- void onAcceptWithDetails(
- DragTargetDetails<
T> details, - T data
- DragTargetDetails<
- bool onWillAcceptWithDetails(
- DragTargetDetails<
T> details, - T data,
- bool isTimer
- DragTargetDetails<
- void onLeave(
- T? moveData,
- T data
- void onMove(
- T data,
- DragTargetDetails<
T> details
- HitTestBehavior hitTestBehavior = HitTestBehavior.translucent,
- Axis scrollDirection = Axis.vertical,
- void onDragStarted(
- T data
- void onDragUpdate(
- DragUpdateDetails details,
- T data
- void onDraggableCanceled()?,
- void onDragEnd(
- DraggableDetails details,
- T data
- void onDragCompleted(
- T data
- ScrollController? scrollController,
- double draggingWidgetOpacity = 0.5,
- double edgeScroll = 0.06,
- double scrollSpeed = 1,
- bool isEdgeScroll = true,
- bool isDrag = true,
- List<
T> ? isNotDragList, - DragAnchorStrategy dragAnchorStrategy = childDragAnchorStrategy,
- int maxSimultaneousDrags = 1,
- Duration? longPressDelay,
- 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);