build method
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,
);
}