BasicStreamBuilder<T> constructor

BasicStreamBuilder<T>({
  1. Key? key,
  2. T? initialData,
  3. required Stream<T> stream,
  4. required CustomStreamBuilderDone<T> onDone,
  5. 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());