Type inferrence is good enough to avoid the list hint
See original GitHub issueWhen code-completing a typed list in an argument list, a type annotation is included. ie
Stack(
children: /* !!! */ <Widget>[],
)
As far as I can tell, this not required in the general case. I’d consider getting rid of it, as it’s a little noisy.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Local Type Inference Cheat Sheet for Java 10 and beyond!
Inference for generic methods relies on the target type if there are no actual method arguments that provide sufficient type information. In a ......
Read more >Documentation - Type Inference - TypeScript
This kind of inference takes place when initializing variables and members, setting parameter default values, and determining function return types.
Read more >Does type inference renders the code less readable - Reddit
Type inference is great. It really can help to make a language much more readable, by using context to narrow the scope of...
Read more >Lecture 12: Type Inference
This process is called type-inference, and we will follow the classic Hindley-Milner algorithm to deduce types for our programs.
Read more >programming languages - Why is type inference useful?
While type inference is really useful for local variables, it should not be used for public APIs which have to be unambiguously documented....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pq I tracked this back to https://github.com/flutter/flutter-intellij/issues/832 but it’s not clear why it’s needed (maybe in the past this was necessary?). I’d agree it seems unnecessary and noisy (at least for those not using lints for explicit types everywhere). WDYT?
@pq perfect, thanks!