-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work ondevexp-dartfixIssues with the dartfix packageIssues with the dartfix packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.
Description
We would like to supply fixes that can change a class name based on the method being called.
For example:
Scaffold.of(context).showSnackBar(SnackBar(content: Text('Snack')));should be migrated to
ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text('Snack')));The is not specific to the same method being moved across classes, as we would want to be able to identify and compose fixes that can feasibly migrate classA.methodA to classB.methodB, or constructors too.
Another example of this would be going from this:
BlackListingTextInputFormatter()to this:
FilteringTextInputFormatter.deny()Not sure if that example should be a different use case, if so we can break it out into a separate issue.
craiglabenz and Piinks
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work ondevexp-dartfixIssues with the dartfix packageIssues with the dartfix packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.