JobCubitLoader<T, F> constructor
const
JobCubitLoader<T, F> ({
- Key? key,
- required JobCubit<
T, F> cubit, - required Widget builder(
- BuildContext,
- JobCubitState<
T, F>
- required VoidCallback fetcher,
- bool when(
- JobCubitState<
T, F> , - JobCubitState<
T, F>
- JobCubitState<
- WidgetBuilder? placeholder,
- bool provide = false,
- bool noRetryAppBar = false,
- void onSuccess(
- T
- VoidCallback? onFailure,
- VoidCallback? onRetry,
- JobErrorBuilder? errorPlaceholder,
- required bool isSliver,
- bool animateTransitions = true,
Implementation
const JobCubitLoader({
super.key,
required this.cubit,
required this.builder,
required this.fetcher,
this.when,
this.placeholder,
this.provide = false,
this.noRetryAppBar = false,
this.onSuccess,
this.onFailure,
this.onRetry,
this.errorPlaceholder,
required this.isSliver,
this.animateTransitions = true,
});