Revert "Draggable can be accepted when the data is null" (#99419)

This commit is contained in:
Kate Lovett
2022-03-02 12:31:11 -06:00
committed by GitHub
parent 4b20ce74e3
commit f8eee10f96
4 changed files with 37 additions and 130 deletions

View File

@@ -81,9 +81,9 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
),
);
},
onAccept: (int? data) {
onAccept: (int data) {
setState(() {
acceptedData += data!;
acceptedData += data;
});
},
),