PackageFilter constructor
PackageFilter({
- List<
Glob> scope = const [], - List<
Glob> ignore = const [], - List<
String> dirExists = const [], - List<
String> fileExists = const [], - List<
String> dependsOn = const [], - List<
String> noDependsOn = const [], - String? updatedSince,
- String? diff,
- bool? includePrivatePackages,
- bool? published,
- bool? nullSafe,
- bool? flutter,
- bool includeDependencies = false,
- bool includeDependents = false,
Implementation
PackageFilter({
this.scope = const [],
this.ignore = const [],
this.dirExists = const [],
this.fileExists = const [],
List<String> dependsOn = const [],
List<String> noDependsOn = const [],
this.updatedSince,
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',
] {
_validate();
}