loadNotes

fun loadNotes(showDeleted: Boolean = false)

Loads notes from the database based on the 'showDeleted' flag. Updates the _notes StateFlow with the fetched notes.

Parameters

showDeleted

If true, loads soft-deleted notes; otherwise, loads active notes. Defaults to false.