PackageFilters constructor

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

Implementation

PackageFilters({
  this.scope = const [],
  this.ignore = const [],
  this.dirExists = const [],
  this.fileExists = const [],
  List<String> dependsOn = const [],
  List<String> noDependsOn = const [],
  this.diff,
  this.includePrivatePackages,
  this.published,
  this.nullSafe,
  bool? flutter,
  this.includeDependencies = false,
  this.includeDependents = false,
})  : dependsOn = [
        ...dependsOn,
        // ignore: use_if_null_to_convert_nulls_to_bools
        if (flutter == true) 'flutter',
      ],
      noDependsOn = [
        ...noDependsOn,
        if (flutter == false) 'flutter',
      ];