error method

void error(
  1. String message,
  2. {String? file,
  3. String? line,
  4. String? column}
)

Creates an error message and prints the message to the log.

You can optionally provide a filename (file), line number (line), and column (column) number where the warning occurred.

Implementation

void error(
  String message, {
  String? file,
  String? line,
  String? column,
}) =>
    _log('error', message, file, line, column);