Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

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'

  }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Flutter #list #strings #String
ADD COMMENT
Topic
Name
7+5 =