AnalysisError.withNamedArguments constructor
AnalysisError.withNamedArguments(})
Initialize a newly created analysis error. The error is associated with
the given source
and is located at the given offset
with the given
length
. The error will have the given errorCode
and the map of
arguments
will be used to complete the message and correction. If any
contextMessages
are provided, they will be recorded with the error.
Deprecated - no analyzer errors use named arguments anymore. Please use
AnalysisError()
.
Implementation
@deprecated
AnalysisError.withNamedArguments(Source source, int offset, int length,
ErrorCode errorCode, Map<String, dynamic> arguments,
{List<DiagnosticMessage> contextMessages = const []})
: this(source, offset, length, errorCode,
_translateNamedArguments(arguments), contextMessages);