MyDragTarget<T> constructor

const MyDragTarget<T>({
  1. Key? key,
  2. required MyDragTargetBuilder<T> builder,
  3. MyDragTargetWillAccept<T>? onWillAccept,
  4. MyDragTargetAccept<T>? onAccept,
  5. 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);