updateConfig method

void updateConfig({
  1. CatcherOptions? debugConfig,
  2. CatcherOptions? profileConfig,
  3. CatcherOptions? releaseConfig,
})

Update config after initialization

Implementation

void updateConfig({
  CatcherOptions? debugConfig,
  CatcherOptions? profileConfig,
  CatcherOptions? releaseConfig,
}) {
  if (debugConfig != null) {
    this.debugConfig = debugConfig;
  }
  if (profileConfig != null) {
    this.profileConfig = profileConfig;
  }
  if (releaseConfig != null) {
    this.releaseConfig = releaseConfig;
  }
  _setupCurrentConfig();
  _setupReportModeActionInReportMode();
  _setupScreenshotManager();
  _configureLogger();
  _localizationOptions = null;
}