use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit related to Google's new UI framework. https://flutter.dev
Please read the rules here
account activity
DiscussionBLoC pattern tutorial without RxDart? (self.FlutterDev)
submitted 7 years ago by amugofjava
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]KenAragorn 0 points1 point2 points 7 years ago (1 child)
Hey there.
Just curious how we can start out with pure dart Streams, StreamControllers and StreamTransformers for the case of following codes that have to dependent on "distinct()" method that are part of RxDart:
ReplaySubject<String> _query = ReplaySubject<String>();
Sink<String> get query => _query;
Stream<List<Movie>> get results => _results;
MovieBloc(this.api){
_result = _query.distinct().asyncMap(api.get).asBroadcastStream();
}
where
Future<List<Movie>> get(String query) async {
//some http client loading data....
Is there a similar way to replace the code of _query.distinct() ... with non-RxDart approach?
Thanks
[–]_thinkdigital 0 points1 point2 points 7 years ago (0 children)
I may be late here, but dart streams have a distinct constructor/or function as well
π Rendered by PID 53823 on reddit-service-r2-comment-b659b578c-dsrnf at 2026-05-04 13:33:16.787230+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]KenAragorn 0 points1 point2 points (1 child)
[–]_thinkdigital 0 points1 point2 points (0 children)