pop() : Works and is the RECOMMENDED way of exiting the app. exit(0) : Also works but it’s NOT RECOMMENDED as it terminates the Dart VM process immediately and user may think that the app just got crashed.
pop() : Works and is the RECOMMENDED way of exiting the app. exit(0) : Also works but it’s NOT RECOMMENDED as it terminates the Dart VM process immediately and user may think that the app just got crashed.