BasicStreamBuilder<T> constructor
BasicStreamBuilder<T> ({
- Key? key,
- T? initialData,
- required Stream<
T> stream, - required CustomStreamBuilderDone<
T> onDone, - CustomBuilderContext? onNone,
Implementation
BasicStreamBuilder({
super.key,
super.initialData,
required super.stream,
required super.onDone,
CustomBuilderContext? onNone,
}) : super(
onNone: onNone ?? (_) => const Center(child: BasicPlaceholder()),
onWaiting: (_) => const Center(child: BasicLoading()),
onError: (_, __) => const BasicError());