AppExitType enum
The type of application exit to perform when calling ServicesBinding.exitApplication.
Values
- 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
dart:io
'sexit()
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.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
AppExitType> - A constant List of the values in this enum, in order of their declaration.