HybridPrinter constructor

HybridPrinter(
  1. LogPrinter realPrinter, {
  2. LogPrinter? debug,
  3. LogPrinter? verbose,
  4. LogPrinter? wtf,
  5. LogPrinter? info,
  6. LogPrinter? warning,
  7. LogPrinter? error,
  8. LogPrinter? success,
})

Implementation

HybridPrinter(
  LogPrinter realPrinter, {
  LogPrinter? debug,
  LogPrinter? verbose,
  LogPrinter? wtf,
  LogPrinter? info,
  LogPrinter? warning,
  LogPrinter? error,
  LogPrinter? success,
}) : _printerMap = {
        Level.debug: debug ?? realPrinter,
        Level.verbose: verbose ?? realPrinter,
        Level.wtf: wtf ?? realPrinter,
        Level.info: info ?? realPrinter,
        Level.warning: warning ?? realPrinter,
        Level.error: error ?? realPrinter,
        Level.success: success ?? realPrinter,
      };