You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to know how to get the distance from the center.
When I do the below I get A value of type 'Object?' can't be assigned to a variable of type 'Map<String, dynamic>'. on the first line. document is of type DocumentSnapshot.
Map<String, dynamic> snapData = document.data();
final GeoPoint point = snapData['position']['geopoint'];
The text was updated successfully, but these errors were encountered:
I would like to know how to get the distance from the center.
When I do the below I get
A value of type 'Object?' can't be assigned to a variable of type 'Map<String, dynamic>'.
on the first line. document is of typeDocumentSnapshot
.The text was updated successfully, but these errors were encountered: