updateConfig method

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

Update config after initialization

Implementation

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