diff --git a/lib/html.dart b/lib/html.dart index e43427a..5d2a528 100644 --- a/lib/html.dart +++ b/lib/html.dart @@ -127,7 +127,7 @@ class HtmlWebSocketChannel extends StreamChannelMixin } void _innerListen(MessageEvent event) { - final JSAny? eventData = event.data; + final eventData = event.data; Object? data; if (eventData.typeofEquals('object') && (eventData as JSObject).instanceOfString('ArrayBuffer')) {