unnecessary_ raw_ strings
Details about the 'unnecessary_raw_strings' diagnostic produced by the Dart analyzer.
Unnecessary use of a raw string.
Description
#
The analyzer produces this diagnostic when a string literal is
marked as being raw (is prefixed with an r), but
making the string raw doesn't change the value of the string.
Example
#
The following code produces this diagnostic because the string
literal will have the same value without the r as
it does with the r:
var s = r'abc';
Common fixes
#Remove the r in front of the string literal:
var s = 'abc';
除非另有说明,文档之所提及适用于 Dart 3.12.2 版本报告页面问题.