fix library

Applies view_model_lint quick fixes across a package from the command line.

Classes

AppliedFix
One fix that was applied, or would be applied in a dry run.
FixSummary
ReportedDiagnostic
A diagnostic reported by dart analyze.

Functions

analyzeWithDart(String root) → Future<List<ReportedDiagnostic>>
Runs dart analyze --format=json with the running SDK, so the package's own plugin configuration, disabled rules, and ignore comments apply.
fixAll(String root, {bool apply = true, int maxRounds = 10, DiagnosticSource analyze = analyzeWithDart, void onFix(AppliedFix fix)?}) → Future<FixSummary>
Applies every view_model_lint quick fix in root, round by round.