BlocBuilderWidget<S extends BlocState> constructor

const BlocBuilderWidget<S extends BlocState>({
  1. Key? key,
  2. required BlocBuilder<S> builder,
  3. required Bloc<S> bloc,
  4. bool forceBuildWhenInializating = true,
  5. bool onlyWhenInitializing = false,
  6. bool forceBuildWhenBusy = true,
  7. bool onlyWhenBusy = false,
  8. bool waitForData = false,
  9. WidgetBuilder? loadingBuilder,
  10. bool buildWhen(
    1. S previous,
    2. S next
    )?,
  11. String? debugLabel,
})

Implementation

const BlocBuilderWidget({
  super.key,
  required this.builder,
  required this.bloc,
  this.forceBuildWhenInializating = true,
  this.onlyWhenInitializing = false,
  this.forceBuildWhenBusy = true,
  this.onlyWhenBusy = false,
  this.waitForData = false,
  this.loadingBuilder,
  this.buildWhen,
  this.debugLabel,
});