enableLogs static method

void enableLogs({
  1. LogHandler? handler,
})

Enables logs. If the custom handler is not provided - then print function will be used.

Implementation

static void enableLogs({LogHandler? handler}) {
  _handler = handler ?? print;
  _logsEnabled = true;
}