-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Description
You can represent a string with either single quotes or double quotes without any difference.
const hello1 = "hello";
const hello2 = 'hello';
hello1 == hello2; //trueTo 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:
nelsonic