Uint8List? bodyBytes;
webViewBody = WebViewBody(tricksterType: tricksterType, orderNo: orderNo);
//String转List<int>
List<int> list = json.encode(webViewBody).codeUnits;
//List<int>转Uint8List
bodyBytes = Uint8List.fromList(list);
flutter String转Uint8List
猜你喜欢
转载自blog.csdn.net/weixin_44911775/article/details/132402990
今日推荐
周排行