DragAnim<T extends Object> class
Constructors
-
DragAnim({required Widget buildItems(DragItems<T> ), List<T>? dataList, bool isLongPressDraggable = true, Widget buildFeedback(T data, Widget child, Size? size)?, Axis? axis, void onAcceptWithDetails(DragTargetDetails<T> details, T data)?, bool onWillAcceptWithDetails(DragTargetDetails<T> details, T data, bool isTimer)?, 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(Velocity velocity, Offset offset, T data)?, 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})
-
const
Properties
-
axis
→ Axis?
-
final
-
buildFeedback
→ Widget Function(T data, Widget child, Size? size)?
-
final
-
buildItems
→ Widget Function(DragItems<T> )
-
final
-
dataList
→ List<T>?
-
final
-
dragAnchorStrategy
→ DragAnchorStrategy
-
final
-
draggingWidgetOpacity
→ double
-
final
-
edgeScroll
→ double
-
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hitTestBehavior
→ HitTestBehavior
-
final
-
isDrag
→ bool
-
final
-
isEdgeScroll
→ bool
-
final
-
isLongPressDraggable
→ bool
-
final
-
isNotDragList
→ List<T>?
-
final
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
longPressDelay
→ Duration?
-
final
-
maxSimultaneousDrags
→ int
-
final
-
onAcceptWithDetails
→ void Function(DragTargetDetails<T> details, T data)?
-
final
-
onDragCompleted
→ void Function(T data)?
-
final
-
onDragEnd
→ void Function(DraggableDetails details, T data)?
-
final
-
onDraggableCanceled
→ void Function(Velocity velocity, Offset offset, T data)?
-
final
-
onDragStarted
→ void Function(T data)?
-
final
-
onDragUpdate
→ void Function(DragUpdateDetails details, T data)?
-
final
-
onLeave
→ void Function(T? moveData, T data)?
-
final
-
onMove
→ void Function(T data, DragTargetDetails<T> details)?
-
final
-
onWillAcceptWithDetails
→ bool Function(DragTargetDetails<T> details, T data, bool isTimer)?
-
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
scrollController
→ ScrollController?
-
final
-
scrollDirection
→ Axis
-
final
-
scrollSpeed
→ double
-
final