Diagnostic.forValues constructor
Diagnostic.forValues({
- required Source source,
- required int offset,
- required int length,
- DiagnosticCode? diagnosticCode,
- @Deprecated("Pass a value for 'diagnosticCode' instead") DiagnosticCode? errorCode,
- required String message,
- String? correctionMessage,
- List<
DiagnosticMessage> contextMessages = const [], - @Deprecated('Use an expando instead') Object? data,
Implementation
Diagnostic.forValues({
required this.source,
required int offset,
required int length,
DiagnosticCode? diagnosticCode,
@Deprecated("Pass a value for 'diagnosticCode' instead")
DiagnosticCode? errorCode,
required String message,
this.correctionMessage,
this.contextMessages = const [],
@Deprecated('Use an expando instead') this.data,
}) : diagnosticCode = _useNonNullCodeBetween(diagnosticCode, errorCode),
problemMessage = new DiagnosticMessageImpl(
filePath: source.fullName,
length: length,
message: message,
offset: offset,
url: null,
);