ErrorReporter constructor

ErrorReporter(
  1. AnalysisErrorListener _errorListener,
  2. Source _source, {
  3. bool isNonNullableByDefault = false,
})

Initialize a newly created error reporter that will report errors to the given _errorListener. Errors will be reported against the _defaultSource unless another source is provided later.

Implementation

ErrorReporter(this._errorListener, this._source,
    {this.isNonNullableByDefault = false});