diagnosticsNotifier property
A ValueNotifier that returns the error, warnings, info, etc from the LSP server or the custom defined DiagnosticLine class. Usage with DiagnosticLine class:
controller.diagnosticsNotifier.value = [
DiagnosticLine(
severity: 1, // severity 1 means error (red underlines).
range: {
"start": {
"line": 1,
"character": 10
},
"end": {
"line": 2,
"character": 15
},
},
message: "An error is here."
),
]
Implementation
final ValueNotifier<List<LspErrors>> diagnosticsNotifier = ValueNotifier([]);