-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String with single or double quotes? #19
Comments
@SimonLab good question, thanks for opening this issue. 👍 We should use whatever the "Effective Dart" Linter enforces. And if you really want to be strict, use the "Pedantic" linter: https://pub.dev/packages/pedantic But yeah, the |
to quote something inside string we need to use double quote 'Hello My Name is "Sirajul" '; |
You can represent a string with either single quotes or double quotes without any difference.
To escape specific characters in a string use
\
Dart style guide let you decide which one you prefer to use, just be consistent.
Flutter style guide recommend to use single quote: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#prefer-single-quotes-for-strings
ref:
The text was updated successfully, but these errors were encountered: