DraggableWidget constructor
const
DraggableWidget({
- Key? key,
- required Widget child,
- void onDragStart(
- DragState state
- void onDragUpdate(
- DragState state
- void onDragEnd(
- DragState state
- void onDragCancel()?,
- bool enabled = true,
- DragDirection direction = DragDirection.both,
- DragConstraints? constraints,
- HitTestBehavior behavior = HitTestBehavior.deferToChild,
- Widget feedbackBuilder(
- BuildContext context,
- DragState state
Creates a DraggableWidget.
Implementation
const DraggableWidget({
super.key,
required this.child,
this.onDragStart,
this.onDragUpdate,
this.onDragEnd,
this.onDragCancel,
this.enabled = true,
this.direction = DragDirection.both,
this.constraints,
this.behavior = HitTestBehavior.deferToChild,
this.feedbackBuilder,
});