Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

NoteFailure.unexpected: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>' in type cast #19

Closed
derhelge opened this issue Dec 16, 2020 · 4 comments

Comments

@derhelge
Copy link

Hi there,

first things first: A million thanks for the great tutorial.

I'm currently running into a bug that seems to affect this repository as well:

A call after login generates an unexpected error:
type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List' in type cast

It seems that a feature in freezed is missing here?
rrousselGit/freezed#292

I cant figure out a clean way to solve this issue.... Maybe its also a completely different problem (:

@derhelge
Copy link
Author

Okay... Going for a walk helped me. My problem had nothing to do with the code base, but was triggered by Firestore: my data structure was wrong and that triggered the error. That's why the error message made complete sense.

@Waruna-Kaushalya
Copy link

@derhelge I'm stuck there too. How to get rid of this? What changes have you made to the data structure? 😔

@derhelge
Copy link
Author

Hey @Waruna-Kaushalya i cant remember it 100% but i guess you missed one "sub-folder". Think of the Firebase database as a JSON file/dictionary, then you know how to set it up.

@Waruna-Kaushalya
Copy link

Thank you @derhelge . I'll Check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants