Diagnostic class final

One problem found in a document.

Annotations
  • @immutable

Constructors

Diagnostic(DiagnosticCode code, String path, String message, {String? nodeId, String? suggestion, String? file})
const

Properties

code → DiagnosticCode
final
file → String?
The document it was found in, when several were checked.
final
hashCode → int
The hash code for this object.
no setterinherited
isError → bool
no setter
message → String
final
nodeId → String?
The node it concerns, when there is one.
final
path → String
A JSON pointer into the document (/nodes/title/props/style/fontSize).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
severity → Severity
no setter
suggestion → String?
A replacement the declarations suggest ("did you mean").
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
toString() → String
A string representation of this object.
override
withFile(String file) → Diagnostic

Operators

operator ==(Object other) → bool
The equality operator.
inherited