zam_view_models library

Classes

EmptyViewModel
A ViewModel that has no data inside. props are all set up. Just extend it and you are good to go.
IdentifiableViewModel<T extends Object?>
A ViewModel with a key. props contains just the key field. Override it to add other fields.
ListItemViewModel<T extends Object?>
A ViewModel that represents an item in a list. A list item usually needs to be identified and hence has a key.
ListViewModel<VIEW_MODEL extends ViewModel>
A base class to represent a collection of view models.
SliderViewModel
A ViewModel for slider widgets.
TextCopiedToastViewModel
TextFieldViewModel
TextToastViewModel
TextViewModel
A ViewModel for text widgets.
ToastViewModel
ValueTextViewModel<T>
A ViewModel to hold a single value and its text format.
ValueViewModel<T>
A ViewModel to hold a single value.
ViewModel
Contains data that could be bound to the views in user interface.

Constants

immutable → const Immutable
Used to annotate a class C. Indicates that C and all subtypes of C must be immutable.