RxBlocListenerBase<B extends RxBlocTypeBase, S> constructor
const
RxBlocListenerBase<B extends RxBlocTypeBase, S> ({
- required RxBlocWidgetListener<
S> listener, - required Stream<
S> state(- B
- Key? key,
- B? bloc,
- Widget? child,
- RxBlocListenerCondition<
S> ? condition,
Base class for widgets that listen to state changes in a specified bloc.
A RxBlocListenerBase is stateful and maintains the state subscription. The type of the state and what happens with each state change is defined by sub-classes.
Implementation
const RxBlocListenerBase({
required this.listener,
required this.state,
Key? key,
this.bloc,
this.child,
this.condition,
}) : super(key: key, child: child);