error static method
Prints error to the console with a ✖ followed by the message in red
Implementation
static void error(String msg) {
  const sep = '\n';
  msg = '${_penError('✖ ${msg.trim()}')}';
  msg = msg + sep;
  // ignore: avoid_print
  print(msg);
}