CatcherOptions constructor

CatcherOptions(
  1. ReportMode reportMode,
  2. List<ReportHandler> handlers, {
  3. int handlerTimeout = 5000,
  4. Map<String, dynamic> customParameters = const <String, dynamic>{},
  5. List<LocalizationOptions> localizationOptions = const [],
  6. Map<String, ReportMode> explicitExceptionReportModesMap = const {},
  7. Map<String, ReportHandler> explicitExceptionHandlersMap = const {},
  8. bool handleSilentError = true,
  9. String screenshotsPath = '',
  10. List<String> excludedParameters = const [],
  11. bool filterFunction(
    1. Report report
    )?,
  12. int reportOccurrenceTimeout = 3000,
  13. CatcherLogger? logger,
})

Builds catcher options instance

Implementation

CatcherOptions(
  this.reportMode,
  this.handlers, {
  this.handlerTimeout = 5000,
  this.customParameters = const <String, dynamic>{},
  this.localizationOptions = const [],
  this.explicitExceptionReportModesMap = const {},
  this.explicitExceptionHandlersMap = const {},
  this.handleSilentError = true,
  this.screenshotsPath = '',
  this.excludedParameters = const [],
  this.filterFunction,
  this.reportOccurrenceTimeout = 3000,
  this.logger,
});