d method

void d(
  1. String message
)

Logs a debug message.

The debug message is displayed with the prefix DEBUG. Use this for temporary logs during development.

Example:

logger.d('Debugging variable: $variableValue');

Implementation

void d(String message) {
  if (_shouldLog()) {
    debugPrint('DEBUG: $message');
  }
}