how to convert list dynamic to string in flutter code example

Example 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

Example 2: flutter convert list dynamic to list string

// succeeds - is dynamic
// gives List<dynamic> 
var target_list_1 = [] + str_list;

// succeeds - is dynamic
// gives List<dynamic> 
var target_list_2 = List<dynamic>.from(str_list);

Tags:

Misc Example