UpdateDiagnosticsRecorder constructor
UpdateDiagnosticsRecorder({})
Creates an in-memory diagnostics recorder.
Implementation
UpdateDiagnosticsRecorder({
DateTime Function()? clock,
UpdateDiagnosticsSink? sink,
this.packageVersion = desktopUpdaterPackageVersion,
String? platform,
this.channel = "stable",
int maxEntries = UpdateProblemReport.maxEntries,
}) : _clock = clock ?? DateTime.now,
_sink = sink,
platform = platform ?? Platform.operatingSystem,
_maxEntries = maxEntries < 1 ? 1 : maxEntries;