DragTarget<T extends Object> constructor
Null safety
- {Key? key,
- required DragTargetBuilder<
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 DragTarget({
super.key,
required this.builder,
this.onWillAccept,
this.onAccept,
this.onAcceptWithDetails,
this.onLeave,
this.onMove,
this.hitTestBehavior = HitTestBehavior.translucent,
});