Home > Enterprise >  How to print a list with double quotes in dart?
How to print a list with double quotes in dart?

Time:04-15

When I print a list in dart, it prints without double quotes like this-

enter image description here

How do I print this list with double quotes around each element?

CodePudding user response:

wordlewords.forEach((word){
   print('"$word"');
});

CodePudding user response:

Add \ before " to skip there function (count it as an normal character).

Example: enter image description here

  • Related