I have this String
List<String> params = ['A','B','C'];
I want to convert this to "['A']['B']['C']"
How can I convert this properly?
>Solution :
You can try:
void main(){
List<String> params = ['A','B','C'];
final out = params.map((e) => "['$e']").join();
print(out);
}
Prints:
['A']['B']['C']