Migrating to 2.0. Error #6061
Replies: 1 comment 1 reply
-
The point of the v2 is to have type safe conversions from Firebase types to custom types. Type safety helps you ensure the documents you pull from firestore are actually in the shape you except which can help you avoid a lot of runtime issues by forcing you to deal with them at compile time. As for your problem, I think it's because void set<T>(
DocumentReference<T> document,
T data, [
SetOptions? options,
]) Which with how you call it you're saying you want a Just call |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Migrating to 2.0.
Below is the error code. What is the solution?
There is too much code to fix.
I need a variety of examples and explanations for the migration.
What can you get through migration?
Error Message
Expected a value of type 'DocumentReference<Map<String, dynamic>>', but got one of type '_WithConverterDocumentReference<CodeModel>'
Beta Was this translation helpful? Give feedback.
All reactions