delete static method
Implementation
static Future<Exception?> delete(String table, String key) async {
if (!initialized) return null;
Exception? exception;
try {
var box = await Hive.openBox(table);
if (box.containsKey(key)) {
await box.delete(key);
}
} on Exception catch (e) {
Log().error('Error Deleting Record Key [$key] in Table [$table]');
Log().exception(e,
caller: 'Future<Exception?> delete($table, $key) async');
exception = e;
}
return exception;
}