build method

Widget build(
  1. Widget builder(
    1. BuildContext context,
    2. T value
    ), {
  2. bool when(
    1. T,
    2. T
    )?,
})

Implementation

Widget build(Widget Function(BuildContext context, T value) builder,
    {bool Function(T, T)? when}) {
  return BlocBuilder<SimpleValueCubit<T>, SimpleValue<T>>(
    bloc: this,
    builder: (context, state) => builder(context, state.value),
    buildWhen:
        when != null ? (prev, cur) => when(prev.value, cur.value) : null,
  );
}