FastorStateManagement class

Manage the state of the application

Get current state just call method "FastorStateManagement.instance().getCurrentState()" it's return state of map

To can use this library must to make all pages use class "PageTemplate"

Properties

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

Methods

addState(State<StatefulWidget> newState) → void
clearAllContext() Future
clearAllState() Future
getAllStates() Map<String, State<StatefulWidget>>
getCurrentContext() BuildContext?
get current page context
getCurrentState() State<StatefulWidget>?
get current page State
isAppForeground() bool
check if the Flutter application is in the foreground
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

Static Methods

instance() FastorStateManagement
single tone design pattern