Catcher2Options constructor

Catcher2Options(
  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. void onFlutterError(
    1. FlutterErrorDetails details
    )?,
  14. void onPlatformError(
    1. Object error,
    2. StackTrace stack
    )?,
  15. Catcher2Logger? logger,
})

Builds catcher 2 options instance

Implementation

Catcher2Options(
  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.onFlutterError,
  this.onPlatformError,
  this.logger,
});