Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SpUtil.getObjList报错:Expected a value of type 'Never', but got one of type 'Message' #56

Open
ParadiseWitch opened this issue Apr 5, 2023 · 0 comments

Comments

@ParadiseWitch
Copy link

ParadiseWitch commented Apr 5, 2023

使用SpUtil.getObjList报错,Message.fromJson是使用json_annotation自动生成的

SpUtil.getObjList(getSPKey(), (v) {
  return Message.fromJson(v as Map<String, dynamic>);
})

运行时报错:

The following TypeErrorImpl was thrown while handling a gesture:
Expected a value of type 'Never', but got one of type 'Message'
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant