hive function

Future<Box> hive(
  1. String box
)

Implementation

Future<Box> hive(String box) async {
  if (Hive.isBoxOpen("arcane$box")) {
    return Hive.box("arcane$box");
  }

  return Hive.openBox("arcane$box").then((value) {
    success(
        "Initialized Hive Box ${value.name} with ${value.keys.length} keys");
    return value;
  });
}