SilentStreamBuilder<T> constructor

SilentStreamBuilder<T>({
  1. required Widget builder(
    1. BuildContext context,
    2. T data,
    3. ConnectionState connectionState
    ),
  2. Stream<T>? stream,
  3. T? initialData,
  4. Key? key,
})

Implementation

SilentStreamBuilder({
  required super.builder,
  super.stream,
  super.initialData,
  super.key,
}) : super(
       onWait: (ConnectionState connectionState, Widget widget) =>
           const SizedBox.shrink(),
       onError:
           (
             Object? error,
             StackTrace? stackTrace,
             Widget widget,
             ConnectionState connectionState,
           ) {
             debugPrintStack(
               label: <String>[
                 if (isNotNull(error)) 'Error: $error',
                 'ConnectionState: $connectionState',
               ].join('\n'),
               stackTrace: stackTrace,
             );

             return const SizedBox.shrink();
           },
     );