copyWith method

PvtroConfig copyWith({
  1. String? output,
  2. bool? verbose,
  3. bool? help,
  4. List<String>? excludedPackages,
})

Returns a copy of this config with selected fields replaced.

Implementation

PvtroConfig copyWith({
  String? output,
  bool? verbose,
  bool? help,
  List<String>? excludedPackages,
}) {
  return PvtroConfig(
    output: output ?? this.output,
    verbose: verbose ?? this.verbose,
    help: help ?? this.help,
    excludedPackages: excludedPackages ?? this.excludedPackages,
  );
}