DndDraggable constructor

const DndDraggable({
  1. required DndId id,
  2. required Component child,
  3. Object? data,
  4. bool disabled = false,
  5. DndSensorActivationConstraint constraint = DndSensorActivationConstraint.none,
  6. double keyboardDragStep = 25,
  7. String? label,
  8. String? description,
  9. DndDragStartCallback? onDragStart,
  10. DndDragMoveCallback? onDragMove,
  11. DndDragEndCallback? onDragEnd,
  12. DndDragCancelCallback? onDragCancel,
  13. Key? key,
})

Creates a draggable wrapping child.

Implementation

const DndDraggable({
  required this.id,
  required this.child,
  this.data,
  this.disabled = false,
  this.constraint = DndSensorActivationConstraint.none,
  this.keyboardDragStep = 25,
  this.label,
  this.description,
  this.onDragStart,
  this.onDragMove,
  this.onDragEnd,
  this.onDragCancel,
  super.key,
}) : assert(keyboardDragStep > 0, 'Keyboard drag step must be positive.');