DiagnosticMessage class

A message associated with a diagnostic.

For example, if the diagnostic is reporting that a variable has been referenced before it was declared, it might have a diagnostic message that indicates where the variable is declared.

Constructors

DiagnosticMessage(String message, Location location)

Properties

hashCode int
The hash code for this object.
no setterinherited
location Location
The location associated with or referenced by the message. Clients should provide the ability to navigate to the location.
final
message String
The message to be displayed to the user.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Methods

parse(Map m) DiagnosticMessage