Plague Fox
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  As an example of correct code from SDK 
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.