Answers for "Flutter list of strings to one String"

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 "Flutter list of strings to one String"

Code answers related to "Dart"

Browse Popular Code Answers by Language