AppState class

Representation of App State handled by ControlRoot. AppState.init is considered as initial State - used during App loading. AppState.main is considered as default App State. Other predefined States (as AppState.onboarding) can be used to separate main App States and their flow. It's possible to create custom States by extending AppState.

Change State via ControlRootScope -> Control.root.

Constructors

AppState()
const

Properties

hashCode int
The hash code for this object.
no setteroverride
key Type
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(WidgetBuilder builder, {CrossTransition? transition}) AppStateBuilder
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 ==(dynamic other) bool
The equality operator.
override

Constants

auth → const _AppStateAuth
background → const _AppStateBackground
init → const AppState
main → const _AppStateMain
onboarding → const _AppStateOnboarding