init method
Implementation
Future<void> init() async {
final appDirectory = await path_provider.getApplicationDocumentsDirectory();
_hivePath = "${appDirectory.path}/HiveDatabase";
await Hive.initFlutter(_hivePath);
}
Future<void> init() async {
final appDirectory = await path_provider.getApplicationDocumentsDirectory();
_hivePath = "${appDirectory.path}/HiveDatabase";
await Hive.initFlutter(_hivePath);
}