我需要在飞镖中转换List<String>
为 a String
。
我想从首选项中提取列表的值。我已经尝试过这个实现,但它只给了我最后一个值。
Future<List<String>> services = SharedPrefSignUp.getSelectedServices();
services.then((onValue){
List<String>servicesList=onValue;
selectServicesText=servicesList.join(",");
});
Run Code Online (Sandbox Code Playgroud)