From dcfcef155c8f68f2a85e27dcdba67511857125d3 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 22 Nov 2023 12:37:22 -0800 Subject: [PATCH] Small tweak --- lib/html.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/html.dart b/lib/html.dart index 2263e6e..6b3ea6e 100644 --- a/lib/html.dart +++ b/lib/html.dart @@ -78,10 +78,7 @@ class HtmlWebSocketChannel extends StreamChannelMixin : this( WebSocket( url.toString(), - (protocols?.toList() ?? const []) - .map((e) => e.toJS) - .toList() - .toJS, + protocols?.map((e) => e.toJS).toList().toJS ?? JSArray(), )..binaryType = (binaryType ?? BinaryType.list).value, );