dart fix - Add the ability to replace a static method invocation with a const constructor. #49056
Labels
analyzer-data-driven-fixes
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
The Flutter team has a static function on
MaterialStateProperty
:We would like to have a dart fix that will allow us to replace invocations of
.all
with a call to a constructor for a new class that implementsMaterialStateProperty<T>
:So instead of:
We want:
Looking at the docs for fixes, there doesn't appear to be a way to define this kind of transform. If possible this would be a nice feature for us.
The text was updated successfully, but these errors were encountered: