DoctorService class
Service that performs the "doctor" workflow:
- Scan for *.zorphy.dart files
- Delete them (or preview with dry-run)
- Run build_runner for clean regeneration
- Report counts and InvalidType occurrences
Constructors
-
DoctorService({required String projectDir, List<
String> ? sourceDirs, FindGeneratedFilesFunction? findFiles, DeleteFileFunction? deleteFile, DoctorProcessRunner? processRunner, ReadFileFunction? readFile})
Properties
- deleteFile → DeleteFileFunction?
-
Overrideable file deleter for testing.
final
- findFiles → FindGeneratedFilesFunction?
-
Overrideable file finder for testing.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- processRunner → DoctorProcessRunner?
-
Overrideable process runner for testing.
final
- projectDir → String
-
Root directory of the project.
final
- readFile → ReadFileFunction?
-
Overrideable file reader for testing.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sourceDirs
→ List<
String> -
Source directories to scan (relative to projectDir).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
{bool dryRun = false}) → Future< DoctorResult> - Run the full doctor workflow.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited