copyWith method

Config copyWith({
  1. String? accessToken,
  2. String? endpoint,
  3. String? environment,
  4. String? framework,
  5. String? codeVersion,
  6. String? package,
  7. String? persistencePath,
  8. Duration? persistenceLifetime,
  9. bool? handleUncaughtErrors,
  10. bool? includePlatformLogs,
  11. FutureOr<Sandbox> sandbox(
    1. Config
    )?,
  12. Notifier notifier(
    1. Config
    )?,
  13. Marshaller marshaller(
    1. Config
    )?,
  14. Transformer transformer(
    1. Config
    )?,
  15. Sender sender(
    1. Config
    )?,
})

Implementation

Config copyWith({
  String? accessToken,
  String? endpoint,
  String? environment,
  String? framework,
  String? codeVersion,
  String? package,
  String? persistencePath,
  Duration? persistenceLifetime,
  bool? handleUncaughtErrors,
  bool? includePlatformLogs,
  FutureOr<Sandbox> Function(Config)? sandbox,
  Notifier Function(Config)? notifier,
  Marshaller Function(Config)? marshaller,
  Transformer Function(Config)? transformer,
  Sender Function(Config)? sender,
}) =>
    Config(
        accessToken: accessToken ?? this.accessToken,
        endpoint: endpoint ?? this.endpoint,
        environment: environment ?? this.environment,
        framework: framework ?? this.framework,
        codeVersion: codeVersion ?? this.codeVersion,
        package: package ?? this.package,
        persistencePath: persistencePath ?? this.persistencePath,
        persistenceLifetime: persistenceLifetime ?? this.persistenceLifetime,
        handleUncaughtErrors:
            handleUncaughtErrors ?? this.handleUncaughtErrors,
        includePlatformLogs: includePlatformLogs ?? this.includePlatformLogs,
        sandbox: sandbox ?? this.sandbox,
        notifier: notifier ?? this.notifier,
        marshaller: marshaller ?? this.marshaller,
        transformer: transformer ?? this.transformer,
        sender: sender ?? this.sender);