DarshanGowda0 / GeoFlutterFire

:fire:GeoFlutterFire:fire: is an open-source library that allows you to store and query firestore documents based on their geographic location.
https://youtu.be/MYHVyl-juUk
MIT License
305 stars 261 forks source link

Getting error on geoFirePoint.data() #50

Closed ashishtyagi12 closed 5 years ago

ashishtyagi12 commented 5 years ago

Getting following error thrown when calling geoFirePoint.data()

I/flutter ( 4731): NoSuchMethodError: Class '_InternalLinkedHashMap<String, Object>' has no instance method 'call'. I/flutter ( 4731): Receiver: _LinkedHashMap len:2 I/flutter ( 4731): Tried calling: call()

Here is my code Geoflutterfire geo = Geoflutterfire(); GeoFirePoint geoFirePoint = geo.point(latitude: location.latitude, longitude: location.longitude);

print(geoFirePoint.data());
ashishtyagi12 commented 5 years ago

it was silly error. I was using print(geoFirePoint.data()); which is wrong correct syntax is print(geoFirePoint.data);