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