error static method

dynamic error(
  1. dynamic error,
  2. String className,
  3. String functionName, [
  4. String? message,
])

Implementation

static error(dynamic error, String className, String functionName, [String? message]) {
  LogInfo info = LogInfo(className: className, functionName: functionName);
  Log log = Log(type: LogType.error, info: info, message: message, error: error.toString());
  if (_saveLogs) _save(log);
  if (_showLogs) _consoleLog(log);
}