DragTarget<T> constructor

const DragTarget<T>({Key key, @required DragTargetBuilder<T> builder, DragTargetWillAccept<T> onWillAccept, DragTargetAccept<T> onAccept, DragTargetLeave<T> 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.onLeave,
}) : super(key: key);