BlocWrapper<E extends BlocBase<T> , T> constructor
const
BlocWrapper<E extends BlocBase<T> , T> ({
- Key? key,
- void listener(
- BuildContext context,
- T state
- Widget builder(
- BuildContext context,
- T state
- E? bloc,
- Widget? child,
Implementation
const BlocWrapper({
Key? key,
this.listener,
this.builder,
this.bloc,
this.child,
}) : assert((builder != null) ||
(listener != null && child != null) ||
(listener != null && builder != null)),
super(key: key);