Hint when invoking getContext instead of context2D #18862
Labels
analyzer-warning
Issues with the analyzer's Warning codes
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
It is more efficient to invoke the getter 'context2D' than it is to invoke the method 'getContext' with an argument of '2d'. We should have a hint to let people know.
See https://codereview.chromium.org/286273003/ for code that adds related knowledge to type propagation.
The text was updated successfully, but these errors were encountered: