AppExitResponse enum

The possible responses to a request to exit the application.

The request is typically responded to by creating an AppLifecycleListener and supplying an AppLifecycleListener.onExitRequested callback, or by overriding WidgetsBindingObserver.didRequestAppExit.

Inheritance

Constructors

AppExitResponse()
const

Values

exit → const AppExitResponse

Exiting the application can proceed.

cancel → const AppExitResponse

Cancel the exit: do not exit the application.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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<AppExitResponse>
A constant List of the values in this enum, in order of their declaration.