avoid-unnecessary-gesture-detector
preset: recommended
Warns when a GestureDetector
widget has no event handlers.
Example
❌ Bad:
// LINT
GestureDetector(
child: Widget(),
);
✅ Good:
GestureDetector(
onTapDown: () {
...
},
child: Widget(),
);