StrongModeCode constructor
Initialize a newly created error code to have the given type
and name
.
The message associated with the error will be created from the given
message
template. The correction associated with the error will be
created from the optional correction
template.
Implementation
const StrongModeCode(ErrorType type, String name, String message,
{String correction, bool hasPublishedDocs})
: type = type,
super.temporary(name, message,
correction: correction,
hasPublishedDocs: hasPublishedDocs ?? false);