error static method

String error(
  1. String text
)

Red text for errors

Implementation

static String error(String text) {
  return _applyStyle(text, (t) => chalk.red(t));
}