BlocListener<B extends Bloc, S> constructor

const BlocListener<B extends Bloc, S>({
  1. Key? key,
  2. required void listener(
    1. BuildContext context,
    2. S state
    ),
  3. Widget? child,
  4. bool listenWhen(
    1. S previousState,
    2. S currentState
    )?,
})

Implementation

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