AnalysisError.forValues constructor

AnalysisError.forValues(
  1. Source source,
  2. int offset,
  3. int length,
  4. ErrorCode errorCode,
  5. String message,
  6. String _correction,
  7. {List<DiagnosticMessage> contextMessages = const []}
)

Initialize a newly created analysis error with given values.

Implementation

AnalysisError.forValues(this.source, int offset, int length, this.errorCode,
    String message, this._correction,
    {List<DiagnosticMessage> contextMessages = const []}) {
  _problemMessage = DiagnosticMessageImpl(
      filePath: source?.fullName,
      length: length,
      message: message,
      offset: offset);
  _contextMessages = contextMessages;
}