dvWrapDragDrop function
child as a drop target and/or a draggable, as the modifier asked.
Implementation
Widget dvWrapDragDrop(
Widget child,
DVDropTargetSpec? dropTarget,
DVDragPayload? draggable,
) {
Widget result = child;
if (draggable != null) {
result = DVDraggable(payload: draggable, child: result);
}
if (dropTarget != null) {
result = DVDropTarget(spec: dropTarget, child: result);
}
return result;
}