exitError static method

void exitError(
  1. String message, {
  2. CliLoggerLevel level = CliLoggerLevel.one,
  3. int exitCode = 1,
})

Logs a error message at the given level and exits with given code.

Implementation

static void exitError(
  String message, {
  CliLoggerLevel level = CliLoggerLevel.one,
  int exitCode = 1,
}) {
  final space = _getSpace(level);
  print('$spaceāŒ  $message');
  exit(exitCode);
}