AnalysisError class
An indication of an error, warning, or hint that was produced by the analysis.
Constructors
Properties
- code → String
-
The name, as a string, of the error code associated with this error.
final
-
contextMessages
→ List<
DiagnosticMessage> ? -
Additional messages associated with this diagnostic that provide context
to help the user understand the diagnostic.
final
- correction → String?
-
The correction message to be displayed for this error. The correction
message should indicate how the user can fix the error. The field is
omitted if there is no correction message associated with the error code.
final
- hasFix → bool?
-
A hint to indicate to interested clients that this error has an associated
fix (or fixes). The absence of this field implies there are not known to
be fixes. Note that since the operation to calculate whether fixes apply
needs to be performant it is possible that complicated tests will be
skipped and a false negative returned. For this reason, this attribute
should be treated as a "hint". Despite the possibility of false negatives,
no false positives should be returned. If a client sees this flag set they
can proceed with the confidence that there are in fact associated fixes.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- location → Location
-
The location associated with the error.
final
- message → String
-
The message to be displayed for this error. The message should indicate
what is wrong with the code and why it is wrong.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → String
-
The severity of the error.
final
- type → String
-
The type of the error.
final
- url → String?
-
The URL of a page containing documentation associated with this error.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object o) → bool -
The equality operator.
override
Static Methods
-
parse(
Map m) → AnalysisError