readyForHiveModule function

  1. @ReadyAfterMaterialApp()
Future<void> readyForHiveModule(
  1. BuildContext context
)

Implementation

@ReadyAfterMaterialApp()
Future<void> readyForHiveModule(BuildContext context) async {
  await Hive.initFlutter();
  hiveBox = await Hive.openBox('box');
}