copyWith method
Config
copyWith({
- String? accessToken,
- String? endpoint,
- String? environment,
- String? framework,
- String? codeVersion,
- String? package,
- String? persistencePath,
- Duration? persistenceLifetime,
- bool? handleUncaughtErrors,
- bool? includePlatformLogs,
- FutureOr<
Sandbox> sandbox()?, - Notifier notifier()?,
- Marshaller marshaller()?,
- Transformer transformer()?,
- Sender sender()?,
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);