简体   繁体   中英

Flutter errors Exceptions customTrace and fromJSON

When clicking on the link in E/flutter (17214)#0 I get the (E) highlighted.

catch (e) { print(CustomTrace(StackTrace.current, message: e));

在此处输入图片说明

on the second image in E/flutter E/flutter (17214)#1, I get this highlighted (fromJSON)

在此处输入图片说明

What is happening here is that you are not really deserializing all the data you are getting properly, the dart analyzer is telling you that "noSuchMethodError" is not a Type of String.

This essentially means that you are supposed to have a String somewhere but you are using "noSuchMethodError". The dart analyzer wants you to check your fromJson Method and change somethings.

It would help better if you could show your fromJson method.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM