getLocation method

Future<GeoPoint?> getLocation(
  1. String documentID
)

Gets the current location of a document for the given documentID.

Implementation

Future<GeoPoint?> getLocation(String documentID) async {
  final snapshot = await this.collectionReference.doc(documentID).get();
  final geoPoint = getLocationValue(snapshot);
  return geoPoint;
}