unnecessary_string_escapes

Group: style

Maturity: stable

Linter v0.1.111

Since info is static, may be stale
recommendedflutter

View all Lint Rules

Using the Linter

Remove unnecessary backslashes in strings.

BAD:

'this string contains 2 \"double quotes\" ';
"this string contains 2 \'single quotes\' ";

GOOD:

'this string contains 2 "double quotes" ';
"this string contains 2 'single quotes' ";