SingleChildDragTargetBuilder<T> typedef

SingleChildDragTargetBuilder<T> = Widget Function(BuildContext context, List<T?> candidateData, List rejectedData, Widget? child)

Signature for building children of a DragTarget.

The candidateData argument contains the list of drag data that is hovering over this DragTarget and that has passed DragTarget.onWillAccept. The rejectedData argument contains the list of drag data that is hovering over this DragTarget and that will not be accepted by the DragTarget.

Used by DragTarget.builder.

Implementation

typedef SingleChildDragTargetBuilder<T> = Widget Function(
  BuildContext context,
  List<T?> candidateData,
  List<dynamic> rejectedData,
  Widget? child,
);