Answers for "how to return list of string in flutter"

3

dart print item # of a list

main() {
  var list = [1,2,3];
  print( list[1] ); // 2
}
Posted by: Guest on November-08-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 return list of string in flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language