hiveLazy function

Future<LazyBox> hiveLazy(
  1. String box
)

Implementation

Future<LazyBox> hiveLazy(String box) async {
  if (Hive.isBoxOpen("arcane$box")) {
    return Hive.lazyBox("arcane$box");
  }

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