setDiagnostics method
Applies typed diagnostic range and line overlays.
Implementation
void setDiagnostics(Iterable<TextDiagnosticRange> diagnostics) {
final changed = _model.setDiagnostics(diagnostics);
if (changed) {
notifyListeners();
}
}