SilentStreamBuilder<T> constructor
SilentStreamBuilder<T> ({
- required Widget builder(
- BuildContext context,
- T data,
- ConnectionState connectionState
- Stream<
T> ? stream, - T? initialData,
- 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();
},
);