From 31fe23f282137ec6f41b785c2d3a02feeffe54b4 Mon Sep 17 00:00:00 2001 From: Ilya Yanok Date: Fri, 9 Feb 2024 14:26:07 +0100 Subject: [PATCH] Make `SseConnection` extend `StreamChannelMixin` I don't see any reason for the type argument to be nullable. Seems like a null safety migration artifact. --- lib/src/server/sse_handler.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/server/sse_handler.dart b/lib/src/server/sse_handler.dart index c235c20..376fe27 100644 --- a/lib/src/server/sse_handler.dart +++ b/lib/src/server/sse_handler.dart @@ -28,7 +28,7 @@ class _SseMessage { } /// A bi-directional SSE connection between server and browser. -class SseConnection extends StreamChannelMixin { +class SseConnection extends StreamChannelMixin { /// Incoming messages from the Browser client. final _incomingController = StreamController();