AnalysisProgress class
An immutable snapshot of an in-progress analysis run.
AnalysisRunner invokes its optional progress callback with one of these
as it advances, so a caller (typically the CLI) can render a live
indicator. Producing progress is entirely optional: when no callback is
supplied the runner does no extra work and behaves identically.
Constructors
- AnalysisProgress({required AnalysisPhase phase, required int completed, required int total, String? currentPath})
-
Creates a progress snapshot.
const
Properties
- completed → int
-
How many units of work have finished in phase. For
AnalysisPhase.resolving this counts files already resolved; for
AnalysisPhase.crossFile it is not meaningful and is reported as
0.final - currentPath → String?
-
Absolute path of the file being processed, when applicable.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- phase → AnalysisPhase
-
The phase currently executing.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- total → int
-
Total units of work in phase, or
0when the phase is indeterminate (as with AnalysisPhase.crossFile).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited