Comments (3)
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_stream_friends.