DragTarget<T> constructor

const DragTarget<T>({
  1. required Widget builder(
    1. BuildContext context,
    2. List<T> candidateData,
    3. List rejectedData
    ),
  2. bool onWillAccept(
    1. T data
    )?,
  3. void onAccept(
    1. T data
    )?,
  4. void onLeave(
    1. T? data
    )?,
  5. Key? key,
})

Creates a DragTarget widget.

Implementation

const DragTarget({
  required this.builder,
  this.onWillAccept,
  this.onAccept,
  this.onLeave,
  super.key,
});