본문 바로가기
Flutter

[Flutter] How to convert List to String without []

by hymndaniel 2022. 4. 27.

리스트에 있는 값들을 Text 위젯에 대괄호 없이 넣고 싶을 때

 List<String> list =["one", "Two", "Thee"];
 print(list.join(","));  

 

Reference

https://stackoverflow.com/questions/56443354/how-to-convert-string-list-to-string-in-flutter

 

How to convert String List to String in flutter?

I need to convert List<String> into a String in the dart. I want to extract the value of the list from preferences. I have tried this implementation but it is only giving me the last value. F...

stackoverflow.com

 

728x90