Closed mateomotriz closed 5 years ago
the database is returning a null value :(
Future getLib() { Firestore.instance.runTransaction((Transaction tx) async { DocumentSnapshot snapshot = await tx.get(documentHM); if (snapshot.exists) { snapLat = await snapshot.data[bibLat].toString(); snapLon = await snapshot.data[bibLon].toString(); } return snapLat; }); }
documentHM.get() .then((DocumentSnapshot document) { GeoPoint lib = document['point'] });
merged into #100
the database is returning a null value :(
Future getLib() { Firestore.instance.runTransaction((Transaction tx) async { DocumentSnapshot snapshot = await tx.get(documentHM); if (snapshot.exists) { snapLat = await snapshot.data[bibLat].toString(); snapLon = await snapshot.data[bibLon].toString(); } return snapLat; }); }