[analysis_server] Non-const constructors aren't suggested in a const context #55659
Labels
analyzer-completion
Issues with the analysis server's code completion feature
analyzer-server
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P4
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
I haven't determined when this regression was introduced, but it can be painful and reduce widget discovery when developing Flutter apps. You often have a list or similar that is declared as
const
, but might want to add a new widget that has noconst
constructor. Yes it will result in an error, but with this regression, they won't show up at all, reducing discovery, as well as causing confusion (and requiring extra work) for those who expect the constructor to exist.Completion suggestions:
Tested on: 281241e
The text was updated successfully, but these errors were encountered: