tenhobi / flashcards

FIT CTU · BI-SP1 · BI-SP2 · B172 · B181 – software team project
MIT License
35 stars 8 forks source link

blocs should only have Streams and Sinks #102

Closed tenhobi closed 6 years ago

tenhobi commented 6 years ago

Our blocks have void methods and we are comunicating using them with our app. We should not do this. Better, we should only push data to sink and receive data from stream.

tenhobi commented 6 years ago

e.g. https://github.com/filiph/state_experiments/blob/master/shared/lib/src/bloc/cart_bloc.dart