AppState enum

Inheritance

Constructors

AppState()
const

Values

unknown → const AppState

-1 => When state cannot recognised

foreground → const AppState

0 => When app is running or active. The app is fully visible and interactive.

background → const AppState

1 => When app is background. The app is in the background and is not visible on the screen.

inactive → const AppState

2 => The app is visible but not interactive. You might use this state to pause ongoing tasks that do not need to run when the app is not interactive. Only for iOS

killState → const AppState

3 => When app is in kill state.

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