Patterns destructing functions are colored the same as getters #59976
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P3
A lower priority bug or feature request
Today the colouring for
get
ers andmethod
s is different. See the following code:This differenciates both in declaration and on usage even tough both of the above work the same*.
Today we have patterns that allow us to deconstruct a variable:
We also can get** a method as a
FunctionType
:I'd like to request the same colouring to be applied here inside pattern destruction - at least when we have the name before
:
but I'd be fine with it also being applied to the new variable here if it has the same name.*I've opened dart-lang/language#4159 related to this propriety.
**1. I've opened dart-lang/language#4234 related to this functionality.
**2. @lrhn has commented the following:
The text was updated successfully, but these errors were encountered: