Answers for "add list of strings to array of strings flutter"

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
0

dart add String item to list

List<String> list = ["B", "C", "D"];
list.insert(0, "A"); // at index 0 we are adding A
// list now becomes ["A", "B", "C", "D"]
Posted by: Guest on August-13-2020

Code answers related to "add list of strings to array of strings flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language