CreateNoteScreenViewModel

class CreateNoteScreenViewModel(projectId: String?, updateId: String?, noteId: String?)

The CreateNoteScreenViewModel provides the methods for the creation or the editing of a com.tecknobit.pandoro.ui.screens.notes.data.Note item

Author

N7ghtm4r3 - Tecknobit

Parameters

projectId

The identifier of the project owns the update

updateId

The identifier of the update owns the note

noteId

The identifier of the note to edit

See also

EquinoxViewModel

Constructors

Link copied to clipboard
constructor(projectId: String?, updateId: String?, noteId: String?)

Properties

Link copied to clipboard
lateinit var content: MutableState<String>

content -> state holds the content of the note

Link copied to clipboard
val note: StateFlow<Note?>

Functions

Link copied to clipboard

Method to retrieve the data of a Note

Link copied to clipboard
fun saveNote()

Method to save the content inserted