ApiCodeDiagnostic class final

One problem the validate endpoint reported, located 1-based for an editor.

Annotations
  • @immutable

Constructors

ApiCodeDiagnostic({required ApiDiagnosticSeverity severity, required String message, required int line, required int column, int? length, String? code})
Creates a diagnostic at a 1-based line and column.
const
ApiCodeDiagnostic.fromJson(Map<String, Object?> json)
Reads a diagnostic from its decoded JSON json.
factory

Properties

code → String?
The analyzer or lint rule code, when known.
final
column → int
The 1-based column the problem starts at.
final
hashCode → int
The hash code for this object.
no setterinherited
length → int?
The number of characters the problem spans, when known.
final
line → int
The 1-based line the problem starts on.
final
message → String
The human-readable description.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
severity → ApiDiagnosticSeverity
How serious the problem is.
final

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