initOnce method

  1. @override
Future<void> initOnce()
override

Implementation

@override
Future<void> initOnce() async {
  await Hive.initFlutter();
  _box = await Hive.openBox(boxName);
}