DragTargetModifier<T extends Object> constructor
const
DragTargetModifier<T extends Object> ({
- Key? key,
- Widget? child,
- Key? modifierKey,
- required SingleChildDragTargetBuilder<
T> builder, - DragTargetWillAccept<
T> ? onWillAccept, - DragTargetAccept<
T> ? onAccept, - DragTargetAcceptWithDetails<
T> ? onAcceptWithDetails, - DragTargetLeave<
T> ? onLeave, - DragTargetMove<
T> ? onMove, - 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,
});