constantName property
String
get
constantName
The name of the constant in the analyzer package (or other related package) that represents this diagnostic code.
This string is used when generating test failure messages that suggest how to change test expectations to match the current behavior.
For example, if the unique name is TestClass.MY_ERROR, this method will
return diag.myError.
Implementation
String get constantName => 'diag.${lowerCaseUniqueName.toCamelCase()}';