errorPrinter static method

void errorPrinter(
  1. {required String text,
  2. String? textWithoutColor}
)

Implementation

static void errorPrinter({
  required String text,
  String? textWithoutColor,
}) {
  AnsiPen pen = AnsiPen()..red(bold: true);
  print("${pen(text)} ${textWithoutColor ?? ""}");
}