Want to clear app cache programmatically on Flutter? You can get the temp folder, and delete files in it.
var appDir = (await getTemporaryDirectory()).path;
new Directory(appDir).delete(recursive: true);
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.