How to find all deprecated methods / classes in a Flutter project (Android studio)

Viewed 68

Everything is in the title, i have tried the basic analyzer from Android Studio but it has not inspection for dart files...

How can i do the equivalent of Analyze -> Run Inspectinon By Name ->type Deprecated API Usage mentioned here ?

2 Answers

You can use dart fix

To see a full list of available changes, run the following command:

dart fix --dry-run

To apply all changes in bulk, run the following command:

dart fix --apply

For more info https://dart.dev/tools/dart-fix

Run the following command to see the list of all the warnings related to your project.

dart analyze
Related