BlocBuilderBase<C extends Cubit<S>, S> constructor

const BlocBuilderBase<C extends Cubit<S>, S>(
  1. {Key key,
  2. C cubit,
  3. BlocBuilderCondition<S> buildWhen}
)

Base class for widgets that build themselves based on interaction with a specified cubit.

A BlocBuilderBase is stateful and maintains the state of the interaction so far. The type of the state and how it is updated with each interaction is defined by sub-classes.

Implementation

const BlocBuilderBase({Key key, this.cubit, this.buildWhen})
    : super(key: key);