copyWith method
ProcessorConfigs
copyWith({
- int? numberOfBackgroundProcessors,
- int? maxConcurrency,
- ProcessorMode? processorMode,
Creates a copy of this object with the given fields replaced with the new values.
The copyWith method allows you to create a new instance of ProcessorConfigs with some properties updated while keeping the others unchanged.
Implementation
ProcessorConfigs copyWith({
int? numberOfBackgroundProcessors,
int? maxConcurrency,
ProcessorMode? processorMode,
}) {
return ProcessorConfigs(
numberOfBackgroundProcessors:
numberOfBackgroundProcessors ?? this.numberOfBackgroundProcessors,
maxConcurrency: maxConcurrency ?? this.maxConcurrency,
processorMode: processorMode ?? this.processorMode,
);
}