DiagnosticCode constructor
const
DiagnosticCode({})
Initialize a newly created error code to have the given name. The
message associated with the error will be created from the given
problemMessage template. The correction associated with the error will
be created from the given correctionMessage template.
Implementation
const DiagnosticCode({
String? correctionMessage,
this.hasPublishedDocs = false,
this.isUnresolvedIdentifier = false,
required String name,
required String problemMessage,
required String uniqueName,
}) : _name = name,
_uniqueName = uniqueName,
_correctionMessage = correctionMessage,
_problemMessage = problemMessage;