GeoFlutterFire icon indicating copy to clipboard operation
GeoFlutterFire copied to clipboard

[Feature request] get a List<DocumentSnapshot> instead of stream

Open HossamElharmeil opened this issue 5 years ago • 2 comments

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.

HossamElharmeil avatar Jan 15 '20 00:01 HossamElharmeil

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 avatar Mar 03 '20 14:03 harishreddy-m

@harishreddy-m can you provide more code with explaination on how you did it?

RajithShetty619 avatar Sep 12 '20 13:09 RajithShetty619