Open lxknvlk opened 2 years ago
@lxknvlk BLoC should remains in presentation layer.
"BLoC can be seen as — yet another presenter disguised in ViewModel —inserted inside your widget tree through a BlocProvider, and helping you respond to events by returning states that can be used to build the corresponding UI (with a BlocBuilder) or perform corresponding actions (with a BlocListener)."
Just ask yourself, how can I reuse BLoC in a completely different application with the same domain? You can't - it's specific to your views.
bloc is business logic component presenter is not for logic, it is for views logic should be in domain