errorExit top-level property

void Function(String message) errorExit
getter/setter pair

Exit the app with a message to stderr. Can be overridden by tests to avoid exits.

Implementation

// ignore: prefer_function_declarations_over_variables
void Function(String message) errorExit = (String message) {
  io.stderr.writeln(message);
  io.exit(1);
};