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.
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.