Proposal: unnecessary_pattern
lint
#59616
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.
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
Consider this:
What we wanted to do is to check for
foo
's nullity, but actually we forgot to type?
.foo case final bar
is unnecessary as it basically matches everything, it'd be good if we have a lint to warn us here.The text was updated successfully, but these errors were encountered: