openBox method

Future<Box> openBox()

Implementation

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