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

Time:08-17

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 ?

CodePudding user response:

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

CodePudding user response:

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

dart analyze
  • Related