-
Notifications
You must be signed in to change notification settings - Fork 47
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
Unhandled Exception: type '_Map<String, dynamic>' is not a subtype of type 'GeoPoint' #35
Comments
I'm encountering an issue with the same line of code, in collection.dart on line 124 However I get the error
It only seems to be an issue on iOS for me, same code works fine on Android. |
I'm using v2.3.15 and it's still happening. After a long time, I discovered that the problem was the data type in the database. from "map" to "geopoint". It could be resolved by changing the line you mentioned from:
To:
I hope this can be like this in the next version. |
@monika-with-a-k If you have a null field, you should change it to a "geopoint", or ignore the records where yourField is null in your database query |
It's solved now. Thanks |
Team i'm encountering the below error coming from the collection .dart file.
E/flutter ( 9784): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type '_Map<String, dynamic>' is not a subtype of type 'GeoPoint'
E/flutter ( 9784): #0 GeoFireCollectionRef._buildQueryStream.. (package:geoflutterfire2/src/collection.dart:124:24)
The code in the library on line 124 is
final GeoPoint geoPoint = geoPointField['geopoint'];
The text was updated successfully, but these errors were encountered: