e static method

void e(
  1. String tag,
  2. String msg, [
  3. Object? error,
  4. StackTrace? stack,
])

Error log

Implementation

static void e(String tag, String msg, [Object? error, StackTrace? stack]) {
  if (!errorLogsEnabled) return;
  debugPrint("[ERROR][$tag]: $msg");
  if (error != null) debugPrint("Error: $error");
  if (stack != null) debugPrint("StackTrace: $stack");
}