Giter VIP home page Giter VIP logo

Comments (8)

mike-gallego avatar mike-gallego commented on May 29, 2024 1

`subscription = radiusRX.switchMap((rad) {
return _geoflutterfire.collection(collectionRef: queryRef).within(
center: center, radius: rad, field: field, strictMode: true);
}).listen((List documentList) {
Future.forEach(documentList, (DocumentSnapshot document) {
// Fetches the data in the snapshot

}).whenComplete((){
// When it is finished fetching all the data, cancel subscription
subscription.cancel();
});`
Well here's the code even though it's badly formatted.

from geoflutterfire.

MartinJLee avatar MartinJLee commented on May 29, 2024 1

This seems duplicate to #27

from geoflutterfire.

mike-gallego avatar mike-gallego commented on May 29, 2024

The way I did it was have the subscription cancel once it fetched all the data.
https://gist.github.com/mikeyyg96/db3facc147981917d43945e2e4ff82a6

from geoflutterfire.

i6x86 avatar i6x86 commented on May 29, 2024

The way I did it was have the subscription cancel once it fetched all the data.
https://gist.github.com/mikeyyg96/db3facc147981917d43945e2e4ff82a6

Can you post some example code here, please? Thanks in advance!

from geoflutterfire.

mike-gallego avatar mike-gallego commented on May 29, 2024

Check the link I posted. I can't put code here it messes up the formatting.

from geoflutterfire.

i6x86 avatar i6x86 commented on May 29, 2024

Check the link I posted. I can't put code here it messes up the formatting.

hmm,
the link leads me to https://github.com/DarshanGowda0/GeoFlutterFire/issues/url
and the page says:

No results matched your search.
You could search all of GitHub or try an advanced search.

from geoflutterfire.

i6x86 avatar i6x86 commented on May 29, 2024

Tnx @mikeyyg96 I'll give it a try!

from geoflutterfire.

klaszlo8207 avatar klaszlo8207 commented on May 29, 2024

@mikeyyg96 what is radiusRX ?

from geoflutterfire.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.