SingleSubscriber<T> constructor

const SingleSubscriber<T>({
  1. Key? key,
  2. required Future<T> future,
  3. required _Builder<T> builder,
  4. bool showLoading = true,
  5. T? initialData,
  6. bool cacheable = true,
  7. Widget? emptyPlaceholder,
  8. _ErrorPlaceholderBuilder? errorPlaceholderBuilder,
  9. Widget? loadingPlaceholder,
  10. bool handleEmpty = true,
  11. bool sliver = false,
  12. double? width,
  13. double? height,
  14. Decoration? decoration,
})

Implementation

const SingleSubscriber({
  super.key,
  required this.future,
  required this.builder,
  this.showLoading = true,
  this.initialData,
  this.cacheable = true,
  this.emptyPlaceholder,
  this.errorPlaceholderBuilder,
  this.loadingPlaceholder,
  this.handleEmpty = true,
  this.sliver = false,
  this.width,
  this.height,
  this.decoration,
});