BlocBuilderBase<B extends StateStreamable<S>, S> constructor

const BlocBuilderBase<B extends StateStreamable<S>, S>({
  1. Key? key,
  2. B? bloc,
  3. BlocBuilderCondition<S>? buildWhen,
})

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

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.bloc, this.buildWhen})
    : super(key: key);