An abstract PulseXFutureViewModel that holds generic type V.
PulseXFutureViewModel is used when dealing with API calls,
It provides you with four states - initial state, loading state, loaded state, error state
You can update PulseXState via changeState method
If you wanna check the current state, use status getter method which returns PulseXStatus enum
PulseXFutureViewModel extends PulseXBaseViewModel so that a single value can be used
When value is replaced with something that is not equal to the old
value as evaluated by the equality operator ==, this class notifies its
listeners.
Very simple and easy to use service locator
You register your object creation factory or an instance of an object with register,
or registerLazySingleton
And retrieve the desired object using find or call your locator as function as its a
callable class
PulseXListViewModel is intended for List data type of generic type V
If you wanna add value to the list, use addValue method
To remove value from the list, use removeValue method
PulseXMapViewModel is intended for Map data type of generic type V
If you wanna add value to the Map, use addValue method with key & value
To remove value from the list, use removeValue method with key
When removing value from the Map, if key is not present in the Map
PulseX will throw keyNotFoundError
To empty Map, use clear method
PulseXSetViewModel is intended for Set data type of generic type V
If you wanna add value to set, use addValue method
To remove value from set, use removeValue method
An abstract PulseXViewModel that holds generic type V.
PulseXBaseViewModel is intended for simple data types such as String, int, double, etc
PulseXBaseViewModel extends PulseXBaseViewModel
When value is replaced with something that is not equal to the old
value as evaluated by the equality operator ==, this class notifies its
listeners.