The type of application exit to perform when calling ServicesBinding.exitApplication.
- cancelable → const AppExitType
Requests that the application start an orderly exit, sending a request back to the framework through the WidgetsBinding. If that responds with AppExitResponse.exit, then proceed with the same steps as a required exit. If that responds with AppExitResponse.cancel, then the exit request is canceled and the application continues executing normally.
- required → const AppExitType
A non-cancelable orderly exit request. The engine will shut down the engine and call the native UI toolkit's exit API.
If you need an even faster and more dangerous exit, then call
exit()directly, and even the native toolkit's exit API won't be called. This is quite dangerous, though, since it's possible that the engine will crash because it hasn't been properly shut down, causing the app to crash on exit.