state_manager library
June State Manager is a light, modern and powerful state manager to Flutter
Classes
-
Bind<
T> -
BindElement<
T> - The BindElement is responsible for injecting dependencies into the widget tree so that they can be observed
-
Binder<
T> - Binding
-
Binding should be extended.
When using
JuneMaterialApp
, allJunePage
s and navigation methods (like June.to()) have abinding
property that takes an instance of Connections to manage the dependencies() (via June.put()) for the Route you are opening. - Binds
- Engine
- FullLifeCycleController
- A clean controller to be used with only Rx variables A controller with super lifecycles (including native lifecycles)
-
JuneBuilder<
T extends JuneState> - JuneInterface
- JuneInterface allows any auxiliary package to be merged into the "June" class through extensions
- JuneState
- Observer
- ObxElement
- ObxStatelessWidget
- A StatelessWidget than can listen reactive changes.
-
RouterReportManager<
T> -
StateBuilder<
T> - Manages a local state like ObxValue, but uses a callback instead of a Rx value.
-
StateBuilderState<
T>
Enums
- IntelligentManagement
- JuneX by default disposes unused controllers from memory, Through different behaviors. IntelligentManagement.full IntelligentManagement.full is the default one. Dispose classes that are not being used and were not set to be permanent. In the majority of the cases you will want to keep this config untouched. If you new to JuneX then don't change this. IntelligentManagement.onlyBuilder only controllers started in init: or loaded into a Binding with June.lazyPut() will be disposed. If you use June.put() or June.putAsync() or any other approach, IntelligentManagement will not have permissions to exclude this dependency. With the default behavior, even widgets instantiated with "June.put" will be removed, unlike IntelligentManagement.onlyBuilders. IntelligentManagement.keepFactoryJust like IntelligentManagement.full, it will remove it's dependencies when it's not being used anymore. However, it will keep their factory, which means it will recreate the dependency if you need that instance again.
Mixins
- DragMixin
- this mixin allow to fetch data when the scroll is at the bottom or on the top
- FullLifeCycleMixin
- StatelessObserverComponent
- a Component that can track changes in a reactive variable
Extensions
Properties
- June → _JuneImpl
-
final
Functions
-
obscure<
T> (T? value) → T? - This allows a value of type T or T? to be treated as a value of type T?.
Typedefs
-
InitBuilder<
T> = T Function() -
JuneStateBuilder<
T extends JuneLifeCycleMixin> = Widget Function(T controller) -
StateBuilderBuilder<
T> = Widget Function(T snapshot, StateUpdateFunction< T> updater) -
StateUpdateFunction<
T> = void Function(T snapshot) -
StateUpdater<
T> = T Function()
Exceptions / Errors
-
BindError<
T>