Scanner class

Walks a Flutter project directory and returns analyzable Dart files.

Skips generated files, build outputs, and the .dart_tool cache by default.

Constructors

Scanner({Set<String>? excludeDirs, List<String>? excludeSuffixes, Set<String>? excludeBasenames})

Properties

excludeBasenames Set<String>
Exact basenames excluded regardless of location.
final
excludeDirs Set<String>
Directory names excluded if they appear anywhere in the path.
final
excludeSuffixes List<String>
File-name suffixes (or exact names) that mark a file as generated.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scan(String rootPath) Future<List<File>>
Scans rootPath recursively and returns every .dart file that isn't excluded by the configured rules.
toString() String
A string representation of this object.
inherited

Operators

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