error abstract method

void error(
  1. String message, {
  2. String tag = defaultTag,
  3. bool loc = false,
})

Logs an error message.

message is the content to log. tag is an optional identifier for the log source (default: 'default'). loc indicates whether to include location information (default: false).

Implementation

void error(String message, {String tag = defaultTag, bool loc = false});