AnalysisError.forValues constructor

AnalysisError.forValues(
  1. Source source,
  2. int offset,
  3. int length,
  4. ErrorCode errorCode,
  5. String message,
  6. String? _correctionMessage, {
  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._correctionMessage,
    {List<DiagnosticMessage> contextMessages = const []})
    : _contextMessages = contextMessages {
  _problemMessage = DiagnosticMessageImpl(
      filePath: source.fullName,
      length: length,
      message: message,
      offset: offset,
      url: null);
}