SingleSubscriber<T> constructor
const
SingleSubscriber<T> ({
- Key? key,
- required Future<
T> future, - required _Builder<
T> builder, - bool showLoading = true,
- T? initialData,
- bool cacheable = true,
- Widget? emptyPlaceholder,
- _ErrorPlaceholderBuilder? errorPlaceholderBuilder,
- Widget? loadingPlaceholder,
- bool handleEmpty = true,
- bool sliver = false,
- double? width,
- double? height,
- 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,
});