closeTypesBox method

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

Close the types box

Implementation

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