StateBuilder<T> constructor
const
StateBuilder<T> ({
- Key? key,
- required ValueNotifier<
Result> state, - WidgetBuilder? onLoading,
- Widget onError(
- Object error
- Widget onSuccess(
- T data
- Widget builder()?,
Implementation
const StateBuilder({
super.key,
required this.state,
this.onLoading,
this.onError,
this.onSuccess,
this.builder,
});