BlocListener<E, S> constructor

const BlocListener<E, S>({
  1. Key? key,
  2. required Bloc<E, S> bloc,
  3. required BlocWidgetListener<S> listener,
  4. required Widget child,
  5. BlocListenerCondition<S>? listenWhen,
})

Implementation

const BlocListener({
  Key? key,
  required this.bloc,
  required this.listener,
  required this.child,
  this.listenWhen,
}) : super(key: key);