You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When you have code like this:
voidfoo(Iterable iterable) {
if (iterable caseList()) {
}
}
When inside List(^) you get prompted by auto-complete for all proprieties the class has. But when you auto-complete, it simply fills the propriety name and not :var isEmpty which is a valid syntax for getting that value (in for in loops you also can do this but the var is then before the Type name). We already have the rename refactor for changing the variable name to a new one if we want to, but I feel like this would help more than harm most of the time.
Describe the solution you'd like
For it to auto-complete with :var before the propriety name (if you know what lints are available maybe we can look at the ones that ask for the final keyword or the type name) on if cases and without the var keyword on for in loops.
The text was updated successfully, but these errors were encountered:
FMorschel
added
the
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
label
Jan 7, 2025
Originally opened at Dart-Code/Dart-Code#5379.
Is your feature request related to a problem? Please describe.
When you have code like this:
When inside
List(^)
you get prompted by auto-complete for all proprieties the class has. But when you auto-complete, it simply fills the propriety name and not:var isEmpty
which is a valid syntax for getting that value (infor in
loops you also can do this but thevar
is then before the Type name). We already have the rename refactor for changing the variable name to a new one if we want to, but I feel like this would help more than harm most of the time.Describe the solution you'd like
For it to auto-complete with
:var
before the propriety name (if you know what lints are available maybe we can look at the ones that ask for thefinal
keyword or the type name) onif case
s and without thevar
keyword onfor in
loops.The text was updated successfully, but these errors were encountered: