WebSockets constructor Null safety

WebSockets(
  1. dynamic baseUrl,
  2. {bool reconnectOnClose = true,
  3. Duration? reconnectInterval}
)

Implementation

WebSockets(baseUrl,
    {bool reconnectOnClose = true, Duration? reconnectInterval})
    : super(http.IOClient(), baseUrl,
          reconnectOnClose: reconnectOnClose,
          reconnectInterval: reconnectInterval);