UsageOutputHandler.replace constructor

UsageOutputHandler.replace({
  1. OutputSinks sinks = const OutputSinks(),
  2. UsageSettings usageSettings = const UsageSettings(),
  3. UsageExceptionSettings exceptionSettings = const UsageExceptionSettings(),
  4. required Iterable<UsageExceptionHandler> exceptionHandlers,
})

Replaces the standard exception handlers with the given exception handlers.

Implementation

UsageOutputHandler.replace({
  this.sinks = const OutputSinks(),
  this.usageSettings = const UsageSettings(),
  this.exceptionSettings = const UsageExceptionSettings(),
  required final Iterable<UsageExceptionHandler> exceptionHandlers,
}) : _standardExceptionHandler = null,
     _additionalExceptionHandlers = List.of(exceptionHandlers);