Answers for "flutter convert list dynamic to list string"

0

flutter list dynamic to list int

List<dynamic> dynList = [1,2,3,4,5];
List<int> intList = dynList.cast<int>();
Posted by: Guest on May-13-2021
0

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);
Posted by: Guest on March-10-2021

Code answers related to "flutter convert list dynamic to list string"

Browse Popular Code Answers by Language