Skip to content

Commit 5c2e923

Browse files
author
Ilya Yanok
authored
Make SseConnection extend StreamChannelMixin<String> (dart-archive/sse#102)
I don't see any reason for the type argument to be nullable. Seems like a null safety migration artifact.
1 parent 0e0942a commit 5c2e923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/sse/lib/src/server/sse_handler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class _SseMessage {
2828
}
2929

3030
/// A bi-directional SSE connection between server and browser.
31-
class SseConnection extends StreamChannelMixin<String?> {
31+
class SseConnection extends StreamChannelMixin<String> {
3232
/// Incoming messages from the Browser client.
3333
final _incomingController = StreamController<String>();
3434

0 commit comments

Comments
 (0)