avoid_ escaping_ inner_ quotes
Details about the 'avoid_escaping_inner_quotes' diagnostic produced by the Dart analyzer.
Unnecessary escape of '{0}'.
Description
#The analyzer produces this diagnostic when string interpolation or string literals use escaped inner quotes that can be avoided by choosing a different set of surrounding quotes.
Example
#The following code produces this diagnostic because single quotes are escaped inside a single-quoted string:
var s = 'It\'s not fun';
Common fixes
#Change the surrounding quotes so that you don't need to escape the inner quotes:
var s = "It's not fun";
Unless stated otherwise, the documentation on this site reflects Dart 3.13.7. Report an issue.