prelude static method
Initialization.
Implementation
static Future<void> prelude() async {
if (_box != null) {
BadFl.log(
module: 'impl/KVStorageImpl',
message:
'The call to "prelude" is ignored cause it has already been initialized',
);
return;
}
await Hive.initFlutter('kv_storage');
_box = await Hive.openBox('@bad_fl');
BadFl.log(module: 'impl/KVStorageImpl', message: 'Initialized');
}