closeGeneralBox method

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

Close the general box

Implementation

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