Create
Collection
View
Model
The CreateCollectionViewModel class is the support class used by CreateCollectionScreen to communicate with the backend for the creation or the editing of a LinksCollection
Author
N7ghtm4r3 - Tecknobit
Parameters
: the host to launch the snackbar messages
See also
Properties
collectionColor -> the color of the collection
itemDedicatedList -> a dedicated list of the item, useful to manage for example links, collections or members list attached to the item
itemDescription -> the description of the item
itemDescriptionError -> whether the itemDescription field is not valid
Functions
Function to initializing the existingItem if exists, null otherwise
Wrapper function to execute the request to create or edit an item