add method

Future<int> add(
  1. ServiceOfJournal s
)

Implementation

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;
}