DragTarget<T> constructor

const DragTarget<T>(
  1. {Key key,
  2. @required DragTargetBuilder<T> builder,
  3. DragTargetWillAccept<T> onWillAccept,
  4. DragTargetAccept<T> onAccept,
  5. DragTargetAcceptWithDetails<T> onAcceptWithDetails,
  6. DragTargetLeave onLeave}
)

Creates a widget that receives drags.

The builder argument must not be null.

Implementation

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