avoid_types_on_closure_parameters false positive #59229
Labels
analyzer-linter
Issues with the analyzer's support for the linter package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
https://dart.dev/tools/linter-rules/avoid_types_on_closure_parameters has false positives. Consider the following
analysis_options.yaml
:The following code:
triggers the error:
When I change the code so that there is no error:
it triggers the lint, and seemingly the only way to get rid of it is to add an ignore.
Would it be possible for the lint to be triggered only when the type is not necessary, but when it is, the lint should not be triggered?
The text was updated successfully, but these errors were encountered: