printMotorException method Null safety

void printMotorException(
  1. String message
)

It prints the message to the console.

Args: message (String): The message to print to the console.

Implementation

static void printMotorException(String message) {
  Future.delayed(const Duration(seconds: 1), () {
    _loggerNoStack.wtf(message);
  });
  throw Exception(message);
}