We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Exception has occurred. _TypeError (type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'Map<String, List<String>>')
This is the generated code: selectedTags: data["selectedTags"]
selectedTags: data["selectedTags"]
It's just lacking a .cast<...>()
The text was updated successfully, but these errors were encountered:
My workaround for now:
MyModel({ this.selfRef, selectedTags, }) { this.selectedTags = (selectedTags as Map).cast<String, List<String>>(); }
Sorry, something went wrong.
The problem is that dart analyzer looses the type information of nested generic type annotations.
It’s a thing I wanted to investigate more in depth
firestore_dart/firestore_serializable/lib/src/helper.dart
Line 69 in 602760d
No branches or pull requests
This is the generated code:
selectedTags: data["selectedTags"]
It's just lacking a .cast<...>()
The text was updated successfully, but these errors were encountered: