openLazyBox method

Future<LazyBox> openLazyBox()

Implementation

Future<LazyBox> openLazyBox() async {
  assert(_name != null && isInitialize, '请先初始化');
  final box = Hive.openLazyBox(_name!);
  _isOpen = true;
  return box;
}