jetpack library
A set of abstractions inspired from Android Jetpack 🚀 to help manage state in flutter applications
Classes
-
EventListener<
T> -
EventQueue<
T> - An abstraction to communicate events to UI from ViewModel or the likes.
-
LiveData<
T> - Observable state holder that allows for imperatively setting and reading the state value
-
LiveDataBuilder<
T> -
A Widget that observes a
LiveData
and rebuilds on change -
LiveDataListener<
T> - A LiveData observer that invokes a change listener on LiveData change
-
MutableEventQueue<
T> -
MutableLiveData<
T> - An Updateable LiveData as the name suggests
- ViewModel
-
ViewModel
s are essentially UI State Controllers - ViewModelFactory
-
Describes how to construct the
ViewModel
s in your app - ViewModelFactoryProvider
- Supplies the viewModelFactory down the Widget tree
- ViewModelProvider
-
Provides the
ViewModel
present in the scope or creates one - ViewModelScope
-
A Wrapper Widget denoting a scope for the
ViewModel
s used inside it - ViewModelStore
Extensions
Typedefs
-
LiveDataObserver<
T> = void Function(T)