Loads notes from the database based on the 'showDeleted' flag. Updates the _notes StateFlow with the fetched notes.
If true, loads soft-deleted notes; otherwise, loads active notes. Defaults to false.