The error you share in the image tells what is the problem. You are trying to assign a function that has the incorrect types to what the parameter expects.
void Function(TapDownDetails) is different than void Function(TapDragDownDetails)?.
You should assign to the parameter a function with same argument type of TapDragDownDetails and that function should also be nullable.
I am facing the same prob;em the flutter library gesture_detector_builder.dart file is giving a lot of error which i didn’t edit.
Have you found a solution for it?
2
Answers
The error you share in the image tells what is the problem. You are trying to assign a function that has the incorrect types to what the parameter expects.
void Function(TapDownDetails)
is different thanvoid Function(TapDragDownDetails)?
.You should assign to the parameter a function with same argument type of
TapDragDownDetails
and that function should also be nullable.I am facing the same prob;em the flutter library gesture_detector_builder.dart file is giving a lot of error which i didn’t edit.
Have you found a solution for it?