selectNextDiagnostic method

bool selectNextDiagnostic({
  1. bool wrap = true,
})

Selects the next diagnostic range.

Implementation

bool selectNextDiagnostic({bool wrap = true}) {
  final before = _TextAreaControllerSnapshot.capture(_model);
  final changed = _model.selectNextDiagnostic(wrap: wrap);
  if (changed && !before.matches(_model)) {
    notifyListeners();
  }
  return changed;
}