Fix usage of deprecated list ctor (dart-lang/web_socket_channel#140)
- Switch to `List.filled` and fill with `0` to avoid difficulty during
the null safety migration.
- Add a generic type to avoid an unnecessary implicit dynamic.
diff --git a/pkgs/web_socket_channel/lib/src/copy/web_socket_impl.dart b/pkgs/web_socket_channel/lib/src/copy/web_socket_impl.dart
index 842f211..4476805 100644
--- a/pkgs/web_socket_channel/lib/src/copy/web_socket_impl.dart
+++ b/pkgs/web_socket_channel/lib/src/copy/web_socket_impl.dart
@@ -92,7 +92,7 @@
EventSink<dynamic /*List<int>|_WebSocketPing|_WebSocketPong*/ > _eventSink;
final bool _serverSide;
- final List _maskingBytes = List(4);
+ final List<int> _maskingBytes = List.filled(4, 0);
final BytesBuilder _payload = BytesBuilder(copy: false);
_WebSocketProtocolTransformer([this._serverSide = false]);