Deprecates onWillAccept and onAccept callbacks in DragTarget. (#133691)

This PR deprecates `onWillAccept` and `onAccept` over `onWillAcceptWithDetails` and `onAcceptWithDetails`.

Fixes: #133347
This commit is contained in:
Chinmoy
2023-11-11 04:17:22 +05:30
committed by GitHub
parent d71fe92ec4
commit 0bde95dc06
10 changed files with 174 additions and 6 deletions

View File

@@ -78,9 +78,9 @@ class _DraggableExampleState extends State<DraggableExample> {
),
);
},
onAccept: (int data) {
onAcceptWithDetails: (DragTargetDetails<int> details) {
setState(() {
acceptedData += data;
acceptedData += details.data;
});
},
),