UpdateDiagnosticsRecorder class
In-memory diagnostics recorder for updater lifecycle events.
Constructors
- UpdateDiagnosticsRecorder({DateTime clock()?, UpdateDiagnosticsSink? sink, String packageVersion = desktopUpdaterPackageVersion, String? platform, String channel = "stable", int maxEntries = UpdateProblemReport.maxEntries})
- Creates an in-memory diagnostics recorder.
Properties
- channel → String
-
Update channel for generated reports.
final
-
entries
→ List<
UpdateDiagnosticEntry> -
Snapshot of currently retained entries.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- packageVersion → String
-
Version of the package that records diagnostics.
final
- platform → String
-
Runtime platform for generated reports.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildReport(
{String? appVersion, String? updateVersion, String? stagingPath, Object? failure}) → UpdateProblemReport - Builds a local, redacted problem report from retained entries.
-
clear(
) → void - Clears retained entries for a fresh update lifecycle.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
record(
{required UpdateDiagnosticStage stage, required UpdateDiagnosticLevel level, required String message, Object? error}) → void - Records a lifecycle entry in memory.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited