avoid_types_on_closure_parameters false positive #59229
Labels
devexp-linter
Issues with the analyzer's support for the linter package
legacy-area-analyzer
Use area-devexp instead.
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: