PackageFilters class

Annotations
  • @immutable

Constructors

PackageFilters({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? diff, bool? includePrivatePackages, bool? published, bool? nullSafe, bool? flutter, bool includeDependencies = false, bool includeDependents = false})
PackageFilters.fromYaml(Map<Object?, Object?> yaml, {required String path, required String workspacePath})
factory

Properties

dependsOn List<String>
Include only packages that depend on a specific package.
final
diff String?
Filter packages based on whether there were changes between a commit and the current HEAD or within a range of commits.
final
dirExists List<String>
Include a package only if a given directory exists.
final
fileExists List<String>
Include a package only if a given file exists.
final
hashCode int
The hash code for this object.
no setteroverride
ignore List<Glob>
Patterns for excluding packages by name.
final
includeDependencies bool
Whether to include the packages that the filtered packages depends on.
final
includeDependents bool
Whether to include packages that depends on the filtered packages.
final
includePrivatePackages bool?
Include/Exclude packages with publish_to: none.
final
noDependsOn List<String>
Include only packages that do not depend on a specific package.
final
nullSafe bool?
Include/exclude packages that are null-safe.
final
published bool?
Include/exclude packages that are up-to-date on pub.dev
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope List<Glob>
Patterns for filtering packages by name.
final

Methods

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}) PackageFilters
copyWithDiff(String? diff) PackageFilters
copyWithUpdatedIgnore(List<Glob> ignore) PackageFilters
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override