error method
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);