DragTargetModifier<T extends Object> constructor

const DragTargetModifier<T extends Object>({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required SingleChildDragTargetBuilder<T> builder,
  5. DragTargetWillAccept<T>? onWillAccept,
  6. DragTargetAccept<T>? onAccept,
  7. DragTargetAcceptWithDetails<T>? onAcceptWithDetails,
  8. DragTargetLeave<T>? onLeave,
  9. DragTargetMove<T>? onMove,
  10. HitTestBehavior hitTestBehavior = HitTestBehavior.translucent,
})

Creates a widget that receives drags.

The builder argument must not be null.

Implementation

const DragTargetModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.builder,
  this.onWillAccept,
  this.onAccept,
  this.onAcceptWithDetails,
  this.onLeave,
  this.onMove,
  this.hitTestBehavior = HitTestBehavior.translucent,
});