copyWith method

PackageFilters copyWith({
  1. List<String>? dependsOn,
  2. List<String>? dirExists,
  3. List<String>? fileExists,
  4. List<Glob>? ignore,
  5. bool? includePrivatePackages,
  6. List<String>? noDependsOn,
  7. bool? nullSafe,
  8. bool? published,
  9. List<Glob>? scope,
  10. String? diff,
  11. bool? includeDependencies,
  12. bool? includeDependents,
})

Implementation

PackageFilters copyWith({
  List<String>? dependsOn,
  List<String>? dirExists,
  List<String>? fileExists,
  List<Glob>? ignore,
  bool? includePrivatePackages,
  List<String>? noDependsOn,
  bool? nullSafe,
  bool? published,
  List<Glob>? scope,
  String? diff,
  bool? includeDependencies,
  bool? includeDependents,
}) {
  return PackageFilters._(
    dependsOn: dependsOn ?? this.dependsOn,
    dirExists: dirExists ?? this.dirExists,
    fileExists: fileExists ?? this.fileExists,
    ignore: ignore ?? this.ignore,
    includePrivatePackages:
        includePrivatePackages ?? this.includePrivatePackages,
    noDependsOn: noDependsOn ?? this.noDependsOn,
    nullSafe: nullSafe ?? this.nullSafe,
    published: published ?? this.published,
    scope: scope ?? this.scope,
    diff: diff ?? this.diff,
    includeDependencies: includeDependencies ?? this.includeDependencies,
    includeDependents: includeDependents ?? this.includeDependents,
  );
}