DraggableConfig class

Configures the tab drag.

It's will be used to configure a Draggable

Constructors

DraggableConfig({Widget? feedback, Offset feedbackOffset = Offset.zero, DragAnchorStrategy dragAnchorStrategy = childDragAnchorStrategy, VoidCallback? onDragStarted, DragUpdateCallback? onDragUpdate, DraggableCanceledCallback? onDraggableCanceled, DragEndCallback? onDragEnd, VoidCallback? onDragCompleted, bool canDrag = true})
const

Properties

canDrag → bool
final
dragAnchorStrategy → DragAnchorStrategy
A strategy that is used by this draggable to get the anchor offset when it is dragged.
final
feedback → Widget?
The widget to show under the pointer when a drag is under way.
final
feedbackOffset → Offset
The feedbackOffset can be used to set the hit test target point for the purposes of finding a drag target. It is especially useful if the feedback is transformed compared to the child.
final
hashCode → int
The hash code for this object.
no setterinherited
onDragCompleted → VoidCallback?
Called when the draggable is dropped and accepted by a DragTarget.
final
onDragEnd → DragEndCallback?
Called when the draggable is dropped.
final
onDraggableCanceled → DraggableCanceledCallback?
Called when the draggable is dropped without being accepted by a DragTarget.
final
onDragStarted → VoidCallback?
Called when the draggable starts being dragged.
final
onDragUpdate → DragUpdateCallback?
Called when the draggable is dragged.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

defaultConfig → const DraggableConfig