UsageOutputHandler.replace constructor
UsageOutputHandler.replace({
- OutputSinks sinks = const OutputSinks(),
- UsageSettings usageSettings = const UsageSettings(),
- UsageExceptionSettings exceptionSettings = const UsageExceptionSettings(),
- 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);