Answers for "how to convertlist<string>to string in dart"

1

convert a list to string in flutter

List<String> list =["one", "Two", "Thee"];
 print(list.join(","));  // Output will be like this : one,Two,Thee
Posted by: Guest on December-10-2020
0

Flutter list of strings to one String

var list = ['one', 'two', 'three'];
  var concatenate = StringBuffer();

  list.forEach((item){
    concatenate.write(item);
  });

  print(concatenate); // displays 'onetwothree'

  }
Posted by: Guest on April-29-2020

Code answers related to "how to convertlist<string>to string in dart"

Code answers related to "Dart"

Browse Popular Code Answers by Language