Future<int> add(ServiceOfJournal s) async { if (!init) return -1; // await ref.read(hiveJournalBox(journalHiveName).future); state = [...state, s]; return await openHive.value?.add(s) ?? -1; }