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,
) {
if (kDebugMode) {
print(connectionState);
print(error);
print(stackTrace);
}
return const SizedBox.shrink();
},
);