klisiewicz / flutter-bloc-patterns

A set of most common BLoC use cases built on top of flutter_bloc library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What's the best way to extend a Bloc?

agostinofiscale opened this issue · comments

Hi everyone, I'm playing with the package and I found the necessity to extend a Bloc. While I'm in a detail page I can edit the selected item but by design DetailsEvent is sealed so if I try to extends an event from it and put it in a on instruction it doesn't work. I know I can make another Bloc to handle every other operation but I would love to know if there is any way to do this with the current bloc or if it will be supported!

Thank you.