printError function

void printError(
  1. dynamic text
)

Print error

Implementation

void printError(dynamic text) {
  debugPrint('\x1B[31m${text.toString()}\x1B[0m');
}