fatal function Null safety

void fatal(
  1. String message,
  2. {bool test = false}
)

Implementation

void fatal(String message, {bool test = false}) {
    if (test) throw Exception(message);
    else print('$RED$message$RESET');
    exit(-1);
}