d method

void d(
  1. String message
)

Used to log a message with debug severity level.

// Create log instance with a tag
static final log = Log("UserRepository");

// ...

// log a message
log.d("Adding the item");

// output:
// [10:45:32] - UserRepository  - [DEBUG]: Adding the item

Implementation

void d(String message) {
  if (level >= debug) _print('DEBUG', message);
}