jacobaraujo7/bloc-pattern

When 'singleton: false' not call dispose

andredealmei opened this issue · 1 comments

The problem happens only when singleton is false

Bloc((i) =>ExempleBloc(),singleton: false),
 
class ExempleBlocextends BlocBase {
@override
  void dispose() {
    super.dispose();
  }
}
 
// within the Dispose() of a widget i call
BlocProvider.disposeBloc<SelectProductBloc>();
 

check last version