GeoFlutterFire
GeoFlutterFire copied to clipboard
[Feature request] get a List<DocumentSnapshot> instead of stream
I'm doing an application that retrieves the shops selling a specific product around the user's area. The shops are fixed and there is no scenario where I would need a stream for displaying the data. And I couldn't find any way to obtain it with the current implementation.
I solved it with following code
within().timeout(Duration(seconds:2)).firstWhere((data)=>data.length>0).then((data){ //do something with List<Documents> });
@harishreddy-m can you provide more code with explaination on how you did it?