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
MutableEventQueue<T>
MutableLiveData<T>
An Updateable LiveData as the name suggests
ViewModel
ViewModels are essentially UI State Controllers
ViewModelFactory
Describes how to construct the ViewModels 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 ViewModels used inside it
ViewModelStore

Typedefs

LiveDataObserver<T> = void Function(T)