From 7b9bcd6a93822567206f0fb2f4fc52b9f1572983 Mon Sep 17 00:00:00 2001 From: Jacob MacDonald Date: Wed, 18 Mar 2020 09:46:01 -0700 Subject: [PATCH] update StreamSinkTransformer.fromHandlers error handler to have a non-nullable stack trace --- lib/src/stream_sink_transformer.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/stream_sink_transformer.dart b/lib/src/stream_sink_transformer.dart index 1ac5073..bdcb196 100644 --- a/lib/src/stream_sink_transformer.dart +++ b/lib/src/stream_sink_transformer.dart @@ -35,7 +35,7 @@ abstract class StreamSinkTransformer { /// the event is passed through unaltered. factory StreamSinkTransformer.fromHandlers( {void Function(S, EventSink)? handleData, - void Function(Object, StackTrace?, EventSink)? handleError, + void Function(Object, StackTrace, EventSink)? handleError, void Function(EventSink)? handleDone}) { return HandlerTransformer(handleData, handleError, handleDone); }