clearDiagnostics method
Implementation
bool clearDiagnostics() {
_diagnostics = const [];
final clearedRanges = clearDecorationLayer(
textDiagnosticsDecorationLayerKey,
);
final clearedLines = clearLineDecorationLayer(
textDiagnosticsLineDecorationLayerKey,
);
return clearedRanges || clearedLines;
}