DoctorReport class final

The report of one run of the doctor.

Constructors

DoctorReport({required String version, required String host, required String kind, required List<String> platforms, required List<CheckResult> results, bool strict = false, bool verifyNatives = false})
const

Properties

exitCode → int
1 when a check found an error, or a warning with strict; else 0.
no setter
hashCode → int
The hash code for this object.
no setterinherited
host → String
The absolute path of the host checked.
final
kind → String
flutter (the host depends on the Flutter SDK), workspace (a workspace root that does not) or dart.
final
platforms → List<String>
The platform folders of a Flutter host: android, ios, macos.
final
results → List<CheckResult>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strict → bool
Whether warnings fail the run.
final
verifyNatives → bool
Whether the native libraries were hashed.
final
version → String
local_inference's version, which is also the doctor's.
final

Methods

count(CheckStatus status) → int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render() → String
The report as text: a line per check, what it found under it when there is more to say, and the fix.
toJson() → Map<String, Object?>
toJsonText() → String
The report as indented JSON.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited
operator [](String id) → CheckResult?
The result of the check id, or null.

Constants

jsonFormat → const int
The version of the shape of toJson; a change that breaks a reader raises it.