warning method
Implementation
Future<void> warning(String message, {String? caller}) async {
try {
// print in debug mode only
if (kDebugMode) {
print('Warning: $message${caller != null ? ' -> $caller' : ''}');
}
// add the entry
hive_log.Log e =
hive_log.Log(type: "warning", message: message, caller: caller);
_addEntry(e);
} catch (ex) {
Log().exception(
'Catch - Warning: $message${caller != null ? ' -> $caller' : ''}');
}
}