Plague Fox

Results 41 comments of Plague Fox

@felangel, of course, I know. But you should use `BlocListener` as generic or expose `BlocListenerSingleChildWidget` or create and export new interface (abstract class or mixin), which will be common to...

@felangel yes, not right now, i meaning when it arrived in stable channel

@narcodico yeah, wrapper for original exception is good workaround. Nowdays this is due to a dart design error. And with very old issue https://github.com/dart-lang/sdk/issues/10297 since 2013. Also, if you use...

Also, you can change API for BLoC Observer to Interceptors list. Something like that: ```dart BlocObserver.instance..addAll( [ CustomCubitInterceptor(), CustomBlocInterceptor(), CustomEventInterceptor(), CustomTransationtInterceptor(), CustomBlocErrorHandlerInterceptor(), ] ); ``` I think this is more...

Another idea: you can simply add in `Transition` class: `bool get completed;` If `completed` is true - this is last state for this event.

As an example of incorrect code from third party developers ![image](https://user-images.githubusercontent.com/7805176/131641188-6406170e-22e2-40e2-9beb-1c14f9a0efc5.png) As an example of correct code from SDK ![image](https://user-images.githubusercontent.com/7805176/131641467-854fd8a2-201e-45f7-9098-35046572c438.png)

You can use Iterable something like this to avoid impact on Event loop and User Interface **!!! THIS IS NOT TESTED AND PRODUCTION READY CODE !!!** ```dart Stream fixEventLoop(Iterable iterable)...

@incendial if you need download and save some picture. Of couse you can download binary data in Uint8List in RAM and after that save it as File. But it would...

@incendial yeap, you can manipulate Iterable INSIDE function, but returning Iterable in PUBLIC function does not make sens. Static method `wait` takes `Iterable`, not returning. All the cases that I...

Also, `Future`/`Future` also has nothing with common reality, and in the overwhelming majority it is a public interface design error. > Streams provide an asynchronous sequence of data.