MyDragTarget<T> constructor
const
MyDragTarget<T> ({
- Key? key,
- required MyDragTargetBuilder<
T> builder, - MyDragTargetWillAccept<
T> ? onWillAccept, - MyDragTargetAccept<
T> ? onAccept, - MyDragTargetLeave<
T> ? onLeave,
Creates a widget that receives drags.
The builder argument must not be null.
Implementation
const MyDragTarget({
Key? key,
required this.builder,
this.onWillAccept,
this.onAccept,
this.onLeave,
}) : super(key: key);