AnalysisError.forValues constructor
AnalysisError.forValues({})
Initialize a newly created analysis error with given values.
Implementation
AnalysisError.forValues({
required this.source,
required int offset,
required int length,
required this.errorCode,
required String message,
String? correctionMessage,
List<DiagnosticMessage> contextMessages = const [],
this.data,
}) : _correctionMessage = correctionMessage,
_contextMessages = contextMessages {
_problemMessage = DiagnosticMessageImpl(
filePath: source.fullName,
length: length,
message: message,
offset: offset,
url: null,
);
}