closeHistoryBox method

Future<void> closeHistoryBox({
  1. String? pw,
})

Close the history box

Implementation

Future<void> closeHistoryBox({
  String? pw,
}) async {
  await _ensureInit(pw: pw);
  if (Hive.isBoxOpen('history')) {
    await Hive.box('history').close();
  }
}