clearDiagnostics method

bool clearDiagnostics()

Implementation

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