Giter VIP home page Giter VIP logo

Comments (3)

brianegan avatar brianegan commented on June 1, 2024 1

Hi Joe, thanks for writing in. I'm almost wondering in that case (and in general) if the StreamCallbacks are necessary, or if it's best to simply use a normal StreamController<void>.broadcast(sync:true).

Then, you can add data to the StreamController, and listen to the stream of data. I kinda made this lib to make that more natural, but wonder if it's really a necessary abstraction since it doesn't work cross-platform.

I've considered changing this lib up just a bit to create special StreamControllers for Flutter, such as "EndOfListStreamController" or "RefreshIndicatorStreamController" instead of the StreamCallback equivalents, and potentially removing the StreamCallbacks.

What are your thoughts?

from flutter_stream_friends.

JoeCherry avatar JoeCherry commented on June 1, 2024 1

Hey thanks for the quick reply! I tried out the just using StreamController<void> and it works really well.

I like the idea of changing things over to SteamControllers because it fits with the Dart Library more and is more clear on what is actually taking place behind the scenes. Also, I think if things were StreamControllers it would make it easier for people to still make use of this lib while still sharing code

from flutter_stream_friends.

brianegan avatar brianegan commented on June 1, 2024

Sounds good, thanks for the input! A bit busy these coming weeks (work & travel), but I'll try to make some updates to this lib soon.

from flutter_stream_friends.

Related Issues (2)

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.