pop() : This command works and is the recommended way of exiting the app in Android. exit(0) : This command also works but it is not recommended because it terminates the Dart VM process immediately and users may think that the app got crashed.
Read moreHow do you refresh the whole app flutter?
To hot reload a Flutter app:
Read moreHow do I restart a program programmatically?
You basically only have to call: ProcessPhoenix. triggerRebirth(context); The library will automatically finish the calling activity, kill the application process and restart the default application activity afterwards.
Read more