DragAnim<T extends Object> class

Inheritance

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

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited