BlocWrapper<E extends BlocBase<T>, T> constructor

const BlocWrapper<E extends BlocBase<T>, T>({
  1. Key? key,
  2. void listener(
    1. BuildContext context,
    2. T state
    )?,
  3. Widget builder(
    1. BuildContext context,
    2. T state
    )?,
  4. E? bloc,
  5. 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);