gpt4 book ai didi

dart socket.on method type casting problem(Dart Socket.On方法类型转换问题)

转载 作者:bug小助手 更新时间:2023-10-25 17:15:10 26 4
gpt4 key购买 nike



enter image description here


How can I type casting data from socket. I want to get rid of dynamic list but it doesn't accept any type casting.

如何从套接字输入强制转换数据。我想摆脱动态列表,但它不接受任何类型转换。


更多回答

Post code, not screenshots of code.

邮政编码,而不是代码的截图。

I don't know what package SocketHelper comes from, but see Difference between casting with 'cast' method and 'as' keyword

我不知道SocketHelper来自哪个程序包,但我可以看到使用‘cast’方法和‘as’关键字进行强制转换的区别

优秀答案推荐

Try this

尝尝这个



and make sure parameter e is a String value



final onlineUsersList = onlines.map((e)=> e.toString()).toList();

更多回答

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com