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?
You can try:
void main(){
List<String> params = ['A','B','C'];
final out = params.map((e) => "['$e']").join();
print(out);
}
Prints:
['A']['B']['C']
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With