onError method

  1. @override
void onError (
  1. AnalysisError error
)
override

This method is invoked when an error has been found by the analysis engine.

Implementation

@override
void onError(AnalysisError error) {
  _errors ??= HashSet<AnalysisError>();
  _errors.add(error);
}