BaseWebSocketClient constructor Null safety

BaseWebSocketClient(
  1. BaseClient client,
  2. dynamic baseUrl,
  3. {bool reconnectOnClose = true,
  4. Duration? reconnectInterval}
)

Implementation

BaseWebSocketClient(http.BaseClient client, baseUrl,
    {this.reconnectOnClose = true, Duration? reconnectInterval})
    : super(client, baseUrl) {
  _reconnectInterval = reconnectInterval ?? Duration(seconds: 10);
}