Build cache is generated on application run time when a temporary file automatically generated in dart-tools folder, android folder and iOS folder. Clear command will delete the build tools and dart directories in flutter project so when we re-compile the project it will start from beginning. This command is mostly used when our project is showing debug error or running related error. So in this tutorial we would Clear Build Cache in Flutter Android iOS App and Rebuild Project structure again.
Contents in this project Clear Build Cache in Flutter Android iOS App and Rebuild Project:
1. Open your flutter project folder in Command Prompt or Terminal like i did in below screenshot. Type flutter clean command and press enter.
Here you go guys, now your flutter project is cleaned successfully and ready to use again with new code 🙂 .