ConsoleLogHandler.private constructor

  1. @visibleForTesting
const ConsoleLogHandler.private(
  1. List<BDLevel> supportedLevels,
  2. BDLogFormatter logFormatter,
  3. LinePrinter _printer
)

Private constructor mostly for testing purpose.

This constructor is used to create a new instance of the ConsoleLogHandler with specific parameters.

It's marked as visible for testing, so it can be used in tests to create instances with specific parameters.

Implementation

@visibleForTesting
const ConsoleLogHandler.private(
  this.supportedLevels,
  this.logFormatter,
  this._printer,
);