init static method
Load the history data base
Implementation
static Future<void> init() async {
try {
await Hive.initFlutter();
Hive.registerAdapter(HistoryAdapter());
} catch (_) {}
_box ??= await Hive.openBox<String>('history_db');
}
Load the history data base
static Future<void> init() async {
try {
await Hive.initFlutter();
Hive.registerAdapter(HistoryAdapter());
} catch (_) {}
_box ??= await Hive.openBox<String>('history_db');
}