log method

void log(
  1. Object? message, {
  2. DebugConsoleLevel level = DebugConsoleLevel.normal,
  3. DateTime? timestamp,
  4. StackTrace? stackTrace,
})

Implementation

void log(
  Object? message, {
  DebugConsoleLevel level = DebugConsoleLevel.normal,
  DateTime? timestamp,
  StackTrace? stackTrace,
}) {
  logs.add(DebugConsoleLog(
    message: message,
    level: level,
    timestamp: timestamp,
    stackTrace: stackTrace,
  ));
  notifyUpdate();
}