BlocListener<B extends Bloc, S> constructor
const
BlocListener<B extends Bloc, S> ({
- Key? key,
- required void listener(
- BuildContext context,
- S state
- Widget? child,
- bool listenWhen(
- S previousState,
- S currentState
Implementation
const BlocListener({super.key, required this.listener, this.child, this.listenWhen});