setFeedback method
Implementation
Widget setFeedback(T data, Widget e, Key key) {
return Builder(builder: (BuildContext context) {
if (widget.maxSimultaneousDrags == 1 && data != dragData) {
return const SizedBox.shrink();
}
final Size? size = getBoxSize(key);
final Widget child = SizedBox(
width: size?.width,
height: size?.height,
child: e,
);
return widget.buildFeedback?.call(data, e, size) ?? child;
});
}