HTAnalysisError constructor
HTAnalysisError(
- HTErrorCode code,
- HTErrorType type, {
- required String message,
- String? extra,
- List<
String> interpolations = const [], - String? correction,
- required String filename,
- required int line,
- required int column,
- int offset = 0,
- int length = 0,
- List<
HTDiagnosticMessage> contextMessages = const [],
Implementation
HTAnalysisError(this.code, this.type,
{required String message,
this.extra,
List<String> interpolations = const [],
this.correction,
required this.filename,
required this.line,
required this.column,
this.offset = 0,
this.length = 0,
this.contextMessages = const []}) {
for (var i = 0; i < interpolations.length; ++i) {
message = message.replaceAll('{$i}', interpolations[i].toString());
}
_message = message;
}