e method

void e(
  1. String message
)

Used to log a message with error severity level.

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

// ...

// log a message
log.e("Item type is incorrect");

// output:
// [10:45:32] - UserRepository  - [ERROR]: Item type is incorrect

Implementation

void e(String message) {
  if (level >= error) _print('ERROR', message);
}