MutationBuilder<T, B extends Cubit<ResourceState<T>>> constructor

const MutationBuilder<T, B extends Cubit<ResourceState<T>>>({
  1. Key? key,
  2. required ResourceMutationBuilder<B, T> builder,
  3. ResourceMutationOnError? onError,
  4. ResourceMutationOnSuccess<T>? onSuccess,
  5. String? successMessage,
  6. Widget? loadingWidget,
  7. Color? loadingWidgetColor,
  8. bool showSuccessBody = false,
  9. bool pop = false,
})

Implementation

const MutationBuilder({
  Key? key,
  required this.builder,
  this.onError,
  this.onSuccess,
  this.successMessage,
  this.loadingWidget,
  this.loadingWidgetColor,
  this.showSuccessBody = false,
  this.pop = false,
}) : super(key: key);