JobCubitLoader<T, F> constructor

const JobCubitLoader<T, F>({
  1. Key? key,
  2. required JobCubit<T, F> cubit,
  3. required Widget builder(
    1. BuildContext,
    2. JobCubitState<T, F>
    ),
  4. required VoidCallback fetcher,
  5. bool when(
    1. JobCubitState<T, F>,
    2. JobCubitState<T, F>
    )?,
  6. WidgetBuilder? placeholder,
  7. bool provide = false,
  8. bool noRetryAppBar = false,
  9. void onSuccess(
    1. T
    )?,
  10. VoidCallback? onFailure,
  11. VoidCallback? onRetry,
  12. JobErrorBuilder? errorPlaceholder,
  13. required bool isSliver,
  14. 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,
});