exitError static method
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);
}