jacobaraujo7 / bloc-pattern

Apenas um package com bases para implantar o Bloc no seu Código
MIT License
134 stars 20 forks source link

When 'singleton: false' not call dispose #16

Closed andredealmei closed 5 years ago

andredealmei commented 5 years ago

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>();
jacobaraujo7 commented 5 years ago

check last version