DraggableWidget constructor

const DraggableWidget({
  1. Key? key,
  2. required Widget child,
  3. void onDragStart(
    1. DragState state
    )?,
  4. void onDragUpdate(
    1. DragState state
    )?,
  5. void onDragEnd(
    1. DragState state
    )?,
  6. void onDragCancel()?,
  7. bool enabled = true,
  8. DragDirection direction = DragDirection.both,
  9. DragConstraints? constraints,
  10. HitTestBehavior behavior = HitTestBehavior.deferToChild,
  11. Widget feedbackBuilder(
    1. BuildContext context,
    2. 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,
});