'How to print a list with double quotes in dart?

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?



Solution 1:[1]

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

Solution 2:[2]

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

Example: enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dulaj Nadawa
Solution 2 Tuan